diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts index 6b6cbd1601..e6dfec886c 100644 --- a/packages/server/src/integrations/mysql.ts +++ b/packages/server/src/integrations/mysql.ts @@ -169,7 +169,10 @@ module MySQLModule { const constraints = { presence: column.Null !== "YES", } - const isAuto: boolean = typeof column.Extra === "string" && (column.Extra === "auto_increment" || column.Extra.toLowerCase().includes("generated")) + const isAuto: boolean = + typeof column.Extra === "string" && + (column.Extra === "auto_increment" || + column.Extra.toLowerCase().includes("generated")) schema[columnName] = { name: columnName, autocolumn: isAuto, diff --git a/packages/server/src/integrations/postgres.ts b/packages/server/src/integrations/postgres.ts index 11628574d1..c4eb58b782 100644 --- a/packages/server/src/integrations/postgres.ts +++ b/packages/server/src/integrations/postgres.ts @@ -184,7 +184,9 @@ module PostgresModule { } const type: string = convertType(column.data_type, TYPE_MAP) - const isAuto: boolean = typeof column.column_default === "string" && column.column_default.startsWith("nextval") + const isAuto: boolean = + typeof column.column_default === "string" && + column.column_default.startsWith("nextval") tables[tableName].schema[columnName] = { autocolumn: isAuto, name: columnName,