diff --git a/src/connections/sql-base.ts b/src/connections/sql-base.ts index 16757e1..b12d498 100644 --- a/src/connections/sql-base.ts +++ b/src/connections/sql-base.ts @@ -246,7 +246,10 @@ export abstract class SqlConnection extends Connection { .alterTable( schemaName ? `${schemaName}.${tableName}` : tableName ) - .addColumn(columnName, defintion) + .addColumn(columnName, { + ...defintion, + type: this.mapDataType(defintion.type), + }) .toQuery() ); }