Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: enable establish baseline in tenant projects (#11408)
Liu Ji85ec9837dc21
diff --git a/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue b/frontend/src/components/Database/DatabaseChangeHistoryPanel.vueindex cf1a4d935d..b0ed369b46 100644--- a/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue+++ b/frontend/src/components/Database/DatabaseChangeHistoryPanel.vue@@ -46,7 +46,7 @@</template></TooltipButton><TooltipButton- v-if="allowMigrate"+ v-if="allowEstablishBaseline"tooltip-mode="DISABLED-ONLY":disabled="false"type="primary"@@ -127,7 +127,6 @@ import {ChangeHistory_Type,ChangeHistoryView,} from "@/types/proto/v1/database_service";-import { TenantMode } from "@/types/proto/v1/project_service";import {getAffectedTablesOfChangeHistory,getHistoryChangeType,@@ -179,20 +178,11 @@ const prepareChangeHistoryList = async () => {onBeforeMount(prepareChangeHistoryList);-const isTenantProject = computed(() => {- return (- props.database.projectEntity.tenantMode === TenantMode.TENANT_MODE_ENABLED- );-});-const allowExportChangeHistory = computed(() => {return state.selectedChangeHistoryNameList.length > 0;});-const allowMigrate = computed(() => {- // Migrating single database in tenant mode is not allowed- // Since this will probably cause different migration version across a group of tenant databases- if (isTenantProject.value) return false;+const allowEstablishBaseline = computed(() => {return allowAlterSchema.value;});