feat: add primary key editing to table structure editor

Add PK checkbox column in Vue dialog, alter_primary_key capability flag,
build_primary_key_sql() for PostgreSQL/MySQL ALTER TABLE PK changes,
and i18n labels in zh-CN/en/es.

Includes flicker fix (silent reload after apply) and move ready badge
to SQL preview header.
This commit is contained in:
t8y2 committed 2026-05-24 20:37:59 +08:00
1 parent 479f4623db
commit 72d5435535
5 files changed
+273 -9

No files matched your search

+1
View File
@@ -888,6 +888,7 @@ export default {
columnName: "Column",
dataType: "Type",
nullable: "Nullable",
primaryKey: "Primary Key",
defaultValue: "Default",
comment: "Comment",
editComment: "Edit comment",
+1
View File
@@ -785,6 +785,7 @@ export default {
columnName: "Columna",
dataType: "Tipo",
nullable: "Admite nulos",
primaryKey: "Clave primaria",
defaultValue: "Valor por defecto",
comment: "Comentario",
editComment: "Editar comentario",
+1
View File
@@ -869,6 +869,7 @@ export default {
columnName: "字段名",
dataType: "类型",
nullable: "可为空",
primaryKey: "主键",
defaultValue: "默认值",
comment: "注释",
editComment: "编辑注释",