Skip to content

Commit e997e89

Browse files
committed
Do not escape default int values
1 parent 7864260 commit e997e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabledump.tableplusplugin/library/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function getColumnMigrate(columnName, dataType, isNullable) {
8989
}
9090
if (defaultVal) {
9191
// ensure non-ints are properly escaped
92-
if (['tinyint', 'int', 'int2', 'int4', 'int8', 'bigint'].indexOf(typeOnly) === -1) {
92+
if (!typeOnly.includes("int")) {
9393
defaultVal = JSON.stringify(defaultVal);
9494
}
9595
migration += "->default(" + defaultVal + ")";

0 commit comments

Comments
 (0)