Skip to content

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

feat: do not return error if we don’t find DONE migration history (#3616)

Tianzhou (天舟)a1d40265e2dd
diff --git a/store/pg_engine.go b/store/pg_engine.go
index 99e6133639..f64894e6c7 100644
--- a/store/pg_engine.go
+++ b/store/pg_engine.go
@@ -189,7 +189,7 @@ func getLatestVersion(ctx context.Context, d dbdriver.Driver, database string) (
return &v, nil
}
- return nil, errors.Errorf("failed to find a successful migration history")
+ return nil, nil
}
// setupDemoData loads the setupDemoData data for testing.