Skip to content

Commit 2d004f1

Browse files
committed
fix: alter column to type with uppercase
1 parent 4af6663 commit 2d004f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/PostgresMetaColumns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ COMMIT;`
210210
? ''
211211
: `ALTER TABLE ${ident(old!.schema)}.${ident(old!.table)} ALTER COLUMN ${ident(
212212
old!.name
213-
)} SET DATA TYPE ${type} USING ${ident(old!.name)}::${type};`
213+
)} SET DATA TYPE ${ident(type)} USING ${ident(old!.name)}::${ident(type)};`
214214

215215
let defaultValueSql: string
216216
if (drop_default) {

0 commit comments

Comments
 (0)