fix(structure): trim table names before creation

This commit is contained in:
zipg authored and GitHub committed 2026-07-20 23:42:41 +08:00
1 parent 4634b0948d
commit e67cdf6134
3 files changed
+29 -3

No files matched your search

@@ -1123,7 +1123,7 @@ function structureChangeOptions(): BuildTableStructureChangeSqlOptions {
return {
databaseType: databaseType.value,
schema: props.schema,
tableName: isCreateMode.value ? newTableName.value : props.tableName || "",
tableName: isCreateMode.value ? newTableName.value.trim() : props.tableName || "",
columns: columns.value,
indexes: indexes.value,
foreignKeys: foreignKeys.value,