Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Add a note on seed data error

天舟a5d159211657
diff --git a/store/sqlite.go b/store/sqlite.go
index 56cb1201c5..45da705ef7 100644
--- a/store/sqlite.go
+++ b/store/sqlite.go
@@ -126,7 +126,11 @@ func (db *DB) Open() (err error) {
}
if err := db.seed(majorBeforeMigration, minorBeforeMigration, majorAfterMigration, minorAfterMigration); err != nil {
- return fmt.Errorf("failed to seed: %w", err)
+ return fmt.Errorf("failed to seed: %w."+
+ " It could be Bytebase is running against an old Bytebase schema. If you are developing Bytebase, you can remove bytebase_dev.db,"+
+ " bytebase_dev.db-shm, bytebase_dev.db-wal under the same directory where the bytebase binary resides. and restart again to let"+
+ " Bytebase create the latest schema. If you are running in production and don't want to reset the data, you can contact [email protected] for help",
+ err)
}
}