Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: disable Schema change type and SQL Review CI control accordingly (#3118)

Tianzhou (天舟)bffe6ac67144
diff --git a/frontend/src/components/ProjectGeneralSettingPanel.vue b/frontend/src/components/ProjectGeneralSettingPanel.vue
index 216ae8884d..215ff1bf99 100644
--- a/frontend/src/components/ProjectGeneralSettingPanel.vue
+++ b/frontend/src/components/ProjectGeneralSettingPanel.vue
@@ -47,6 +47,7 @@
</div>
<BBSelect
id="schemamigrationtype"
+ :disabled="!allowEdit"
:selected-item="state.schemaChangeType"
:item-list="['DDL', 'SDL']"
class="mt-1"
diff --git a/frontend/src/components/RepositoryForm.vue b/frontend/src/components/RepositoryForm.vue
index 86c6da3bd3..371df95082 100644
--- a/frontend/src/components/RepositoryForm.vue
+++ b/frontend/src/components/RepositoryForm.vue
@@ -80,6 +80,7 @@
</div>
<BBSelect
id="schemamigrationtype"
+ :disabled="!allowEdit"
:selected-item="schemaChangeType"
:item-list="['DDL', 'SDL']"
class="mt-1"
@@ -248,6 +249,7 @@
</div>
<div class="flex space-x-4 mt-2">
<BBCheckbox
+ :disabled="!allowEdit"
:title="enableSQLReviewTitle"
:value="repositoryConfig.enableSQLReviewCI"
@toggle="(on: boolean) => {