fix: schema migrate (#1846)

* fix: schema migrate

* chore: update
This commit is contained in:
boojack
2023-06-20 12:18:04 +08:00
committed by GitHub
parent b34aded376
commit 07e82c3f4a
2 changed files with 57 additions and 51 deletions

View File

@@ -67,7 +67,7 @@ func findMigrationHistoryList(ctx context.Context, tx *sql.Tx, find *MigrationHi
FROM
migration_history
WHERE ` + strings.Join(where, " AND ") + `
ORDER BY version DESC
ORDER BY created_ts DESC
`
rows, err := tx.QueryContext(ctx, query, args...)
if err != nil {