Skip to content

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

chore: remove comments from group change sql template (#9514)

Liu Jibfdee9942851
diff --git a/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue b/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue
index 63c2b859f1..f90b40d437 100644
--- a/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue
+++ b/frontend/src/components/AlterSchemaPrepForm/DatabaseGroupPrevEditorModal.vue
@@ -142,11 +142,13 @@ const generateReferenceStatement = (schemaGroupList: ComposedSchemaGroup[]) => {
const statementList: string[] = [];
for (const schemaGroup of schemaGroupList) {
if (props.issueType === "bb.issue.database.schema.update") {
- statementList.push(`-- Uncomment to batch change table group ${schemaGroup.tablePlaceholder}
--- ALTER TABLE ${schemaGroup.tablePlaceholder} ADD COLUMN <<column>> <<datatype>>;`);
+ statementList.push(
+ `ALTER TABLE ${schemaGroup.tablePlaceholder} ADD COLUMN <<column>> <<datatype>>;`
+ );
} else {
- statementList.push(`-- Uncomment to update data of table group ${schemaGroup.tablePlaceholder}
--- UPDATE ${schemaGroup.tablePlaceholder} SET <<column>> = <<value>> WHERE <<condition>>;`);
+ statementList.push(
+ `UPDATE ${schemaGroup.tablePlaceholder} SET <<column>> = <<value>> WHERE <<condition>>;`
+ );
}
}
return statementList.join("\n\n");