Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat: when the schema is empty show an empty indicator (#1688)
tianzhou1eb02794c665
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex cd59cf2cc7..39bcc82829 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -725,6 +725,7 @@"show-diff": "Show diff","left-vs-right": "Prev {prevLink} vs This version","schema-snapshot-after-migration": "The schema snapshot recorded after applying this migration",+ "current-schema-empty": "Current schema is empty","list-limit": "For database having migration history, we list up to 5 most recent histories below. You can click the database name to view all histories.","no-history-in-project": "Do not find migration history from any database in this project.","recording-info": "Migration history is recorded whenever the database schema is altered.",diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex c64e5bb219..d38db0fe6f 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -725,6 +725,7 @@"show-diff": "显示差异","left-vs-right": "之前{prevLink} vs 当前版本","schema-snapshot-after-migration": "完成这次变更后的 schema 快照",+ "current-schema-empty": "当前 schema 为空","list-limit": "对于有变更历史的数据库,我们会在下面最多列出5条记录。您可以点击数据库名称去进一步查看全部的记录。","no-history-in-project": "这个项目下没有发现任何数据库有变更历史。","recording-info": "每当数据库 schema 变更时,我们便会记录下变更历史。",diff --git a/frontend/src/views/MigrationHistoryDetail.vue b/frontend/src/views/MigrationHistoryDetail.vueindex bdcf45850c..3b7dd6a667 100644--- a/frontend/src/views/MigrationHistoryDetail.vue+++ b/frontend/src/views/MigrationHistoryDetail.vue@@ -175,11 +175,16 @@:new-string="migrationHistory.schema"output-format="side-by-side"/>- <highlight-code-block- v-else- class="border mt-2 px-2 whitespace-pre-wrap w-full"- :code="migrationHistory.schema"- />+ <template v-else>+ <highlight-code-block+ v-if="migrationHistory.schema"+ class="border mt-2 px-2 whitespace-pre-wrap w-full"+ :code="migrationHistory.schema"+ />+ <div v-else class="mt-2">+ {{ $t("migration-history.current-schema-empty") }}+ </div>+ </template></div></main>