Skip to content

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

Comment on FindMigrationHistoryList return list order

天舟3e05e081d8b7
diff --git a/db/driver.go b/db/driver.go
index 106c1fd388..4675ca3878 100644
--- a/db/driver.go
+++ b/db/driver.go
@@ -228,7 +228,7 @@ type Driver interface {
SetupMigrationIfNeeded(ctx context.Context) error
// Execute migration will apply the statement and record the migration history on success.
ExecuteMigration(ctx context.Context, m *MigrationInfo, statement string) error
- // Find the migration history list
+ // Find the migration history list and return most recent item first.
FindMigrationHistoryList(ctx context.Context, find *MigrationHistoryFind) ([]*MigrationHistory, error)
}