Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update (#4386)
Danny Xu33c5f660b53a
diff --git a/backend/store/pg_engine.go b/backend/store/pg_engine.goindex 839577e458..855aa99faa 100644--- a/backend/store/pg_engine.go+++ b/backend/store/pg_engine.go@@ -191,10 +191,9 @@ func (db *DB) Open(ctx context.Context) (schemaVersion *semver.Version, err erro// We expect our own migration history to use semantic versions.// If there's no migration history, version will be nil.func getLatestVersion(ctx context.Context, d dbdriver.Driver, database string) (*semver.Version, error) {- limit := 1+ // We look back the past migration history records and return the latest successful (DONE) migration version.history, err := d.FindMigrationHistoryList(ctx, &dbdriver.MigrationHistoryFind{Database: &database,- Limit: &limit,})if err != nil {return nil, errors.Wrap(err, "failed to get migration history")@@ -228,7 +227,7 @@ func getLatestVersion(ctx context.Context, d dbdriver.Driver, database string) (return &v, nil}- return nil, nil+ return nil, errors.Errorf("failed to find a successful migration history to determine the schema version")}// setupDemoData loads the setupDemoData data for testing.