Skip to content

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

fix(mongodb): don't filter the mongodb database out if trigger by change data (#4257)

h3n4lbf2c87a8a506
diff --git a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
index d66b9bfbdd..fe7f2095d1 100644
--- a/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/AlterSchemaPrepForm.vue
@@ -278,8 +278,10 @@ const databaseList = computed(() => {
}
list = list.filter((db) => db.syncStatus === "OK");
- // We disallow users to alter schema for MongoDB databases.
- list = list.filter((db) => db.instance.engine !== "MONGODB");
+ if (isAlterSchema.value) {
+ // We disallow users to alter schema for MongoDB databases.
+ list = list.filter((db) => db.instance.engine !== "MONGODB");
+ }
const keyword = state.searchText.trim();
list = list.filter((db) =>