Skip to content

Commit

Permalink
add column type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Oct 22, 2024
1 parent 4d1afa3 commit 91e7b5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/connections/sql-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 91e7b5e

Please sign in to comment.