From b8e2fbe3ccda6008a7dbc3f701def1f8d8ec8e70 Mon Sep 17 00:00:00 2001 From: "Hieu Nguyen (Jack)" Date: Sun, 11 Oct 2026 02:55:02 +0700 Subject: [PATCH] Add migration check --- src/components/admin-update-card.tsx | 11 +++++++++++ src/lib/i18n/en.json | 1 + 2 files changed, 12 insertions(+) diff --git a/src/components/admin-update-card.tsx b/src/components/admin-update-card.tsx index a74bdd0..2145b50 100644 --- a/src/components/admin-update-card.tsx +++ b/src/components/admin-update-card.tsx @@ -148,7 +148,11 @@ export function AdminUpdateCard() { )} + + )} + {(isCheckingMigrations || migrationStatus) && ( +
{isCheckingMigrations && (
@@ -179,6 +183,13 @@ export function AdminUpdateCard() { {t("update.deployMatching")}
)} + + {!isCheckingMigrations && migrationStatus?.ready && ( +
+ +

{t("update.databaseUpToDate")}

+
+ )}
)} diff --git a/src/lib/i18n/en.json b/src/lib/i18n/en.json index 6c7f3b9..e08faa2 100644 --- a/src/lib/i18n/en.json +++ b/src/lib/i18n/en.json @@ -947,6 +947,7 @@ "update.pendingMigrations.other": "{count} database migrations are pending.", "update.updatingDatabase": "Updating database...", "update.updateDatabase": "Update database", + "update.databaseUpToDate": "Database schema is up to date.", "update.deployMatching": "Deploy the matching Mailflare release before changing this database.", "update.started": "Update started for {repo}@{ref}. Refresh this page after Cloudflare deploys it.", "update.viewWorkflow": "View workflow",