fix(gbase): generate GBase 8s table DDL with Informix dialect

This commit is contained in:
Melody Ruch authored and GitHub committed 2026-09-04 16:48:35 +08:00
1 parent d430ec9a4a
commit af32936297
20 files changed
+284 -16

No files matched your search

@@ -10640,6 +10640,7 @@ async function copyAlterColumnSql() {
const options: BuildSingleColumnAlterSqlOptions = {
databaseType: props.databaseType,
driverProfile: props.connectionId ? connectionStore.getConfig(props.connectionId)?.driver_profile : undefined,
schema: props.tableMeta?.schema,
tableName: props.tableMeta!.tableName,
column: draft,
@@ -1623,6 +1623,7 @@ function scheduleSqlPreviewRefresh() {
function structureChangeOptions(): BuildTableStructureChangeSqlOptions {
return {
databaseType: databaseType.value,
driverProfile: connection.value?.driver_profile,
schema: props.schema,
tableName: isCreateMode.value ? newTableName.value.trim() : props.tableName || "",
// Do not let a draft created by an older build submit properties that the
@@ -77,6 +77,10 @@ export interface EditableStructureTrigger {
export interface BuildTableStructureChangeSqlOptions {
databaseType?: DatabaseType;
/** Driver profile reported by the connection (e.g. `"gbase8s"`). GBase 8s is
* Informix-compatible rather than MySQL-compatible like the rest of the
* `Gbase` family, so this disambiguates which dialect the backend generates. */
driverProfile?: string | null;
schema?: string;
tableName: string;
columns: EditableStructureColumn[];
@@ -118,6 +122,7 @@ export interface SqliteTableStructureChangePreview extends TableStructureChangeS
export interface BuildSingleColumnAlterSqlOptions {
databaseType?: DatabaseType;
driverProfile?: string | null;
schema?: string;
tableName: string;
column: EditableStructureColumn;