File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ COMMIT;`
176
176
default_value,
177
177
default_value_format = 'literal' ,
178
178
is_identity,
179
- identity_generation,
179
+ identity_generation = 'BY DEFAULT' ,
180
180
is_nullable,
181
181
is_unique,
182
182
comment,
@@ -295,10 +295,11 @@ $$;
295
295
old ! . name
296
296
) } IS ${ literal ( comment ) } ;`
297
297
298
- // nameSql must be last.
299
- // defaultValueSql must be after typeSql.
300
- // TODO: Can't set default if column is previously identity even if is_identity: false.
301
- // Must do two separate PATCHes (once to drop identity and another to set default).
298
+ // TODO: Can't set default if column is previously identity even if
299
+ // is_identity: false. Must do two separate PATCHes (once to drop identity
300
+ // and another to set default).
301
+ // NOTE: nameSql must be last. defaultValueSql must be after typeSql.
302
+ // identitySql must be after isNullableSql.
302
303
const sql = `
303
304
BEGIN;
304
305
${ isNullableSql }
You can’t perform that action at this time.
0 commit comments