File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -4641,15 +4641,19 @@ export class CrateDBPostgresQueryRunner
4641
4641
4642
4642
if ( column . charset ) c += ' CHARACTER SET "' + column . charset + '"'
4643
4643
if ( column . collation ) c += ' COLLATE "' + column . collation + '"'
4644
+ if (
4645
+ column . isGenerated &&
4646
+ column . generationStrategy === "uuid"
4647
+ )
4648
+ c += ` TEXT `
4644
4649
if ( column . isNullable !== true ) c += " NOT NULL"
4645
- if ( column . default !== undefined && column . default !== null && ! ( column . isGenerated &&
4646
- column . generationStrategy === "uuid" ) )
4650
+ if ( column . default !== undefined && column . default !== null )
4647
4651
c += " DEFAULT " + column . default
4648
4652
if (
4649
4653
column . isGenerated &&
4650
4654
column . generationStrategy === "uuid"
4651
4655
)
4652
- c += ` TEXT DEFAULT ${ this . driver . uuidGenerator } `
4656
+ c += ` DEFAULT ${ this . driver . uuidGenerator } `
4653
4657
4654
4658
return c
4655
4659
}
You can’t perform that action at this time.
0 commit comments