#15043·bytebase

After upgrading from version 2.22.0 to 3.3.0, the Change Data process failed with the error: "ERROR: column sheet.database_id does not exist (SQLSTATE 42703)."

Author: archeanzhangCreated Jan 20, 2025Updated Sep 29, 2026

Provide the Bytebase version you are using

3.3.0

Describe the bug

After upgrading from version 2.22.0 to 3.3.0, the Change Data process failed with the error: "ERROR: column sheet.database_id does not exist (SQLSTATE 42703)." However, the second attempt was successful.

Upon reviewing the logs, I found the following entry:

time=2025-01-20T05:18:22.984Z level=ERROR source=pg/sync.go:98 msg="failed to restore search path" error="sql: transaction has already been committed or rolled back"

It seems the transaction was completed, but the result failed to be written to Bytebase's database. Upon inspecting the Bytebase database, I noticed that the database_id column in the sheet table no longer exists in version 3.3.0. It appears Bytebase might still be attempting to write data to this non-existent column.

Image

Steps to reproduce

  1. Upgrade from version 2.22.0 to 3.3.0.
  2. Navigate to the database, select "Change Data," and insert data into your table.
  3. Rollout the issue.

Expected behavior

Data will be inserted successfully without any errors.

Provide the database you are using

Postgres 14.0

Provide the version control system you are using

none

Additional context

No response