From dc9f531447737d69bc1def592b98522788253020 Mon Sep 17 00:00:00 2001 From: boojack Date: Fri, 2 Sep 2022 00:01:08 +0800 Subject: [PATCH] fix: find latest migration history (#190) * fix: auth action button * fix: find latest migration history --- store/db/migration_history.go | 2 +- web/src/pages/Auth.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/store/db/migration_history.go b/store/db/migration_history.go index ef56da6ea..bf230b001 100644 --- a/store/db/migration_history.go +++ b/store/db/migration_history.go @@ -72,7 +72,7 @@ func findMigrationHistoryList(ctx context.Context, tx *sql.Tx, find *MigrationHi FROM migration_history WHERE ` + strings.Join(where, " AND ") + ` - ORDER BY created_ts DESC + ORDER BY version DESC ` rows, err := tx.QueryContext(ctx, query, args...) if err != nil { diff --git a/web/src/pages/Auth.tsx b/web/src/pages/Auth.tsx index 9c63c0a9a..27ee93ada 100644 --- a/web/src/pages/Auth.tsx +++ b/web/src/pages/Auth.tsx @@ -142,7 +142,7 @@ const Auth: React.FC = () => {