File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4641,15 +4641,19 @@ export class CrateDBPostgresQueryRunner
46414641
46424642 if ( column . charset ) c += ' CHARACTER SET "' + column . charset + '"'
46434643 if ( column . collation ) c += ' COLLATE "' + column . collation + '"'
4644+ if (
4645+ column . isGenerated &&
4646+ column . generationStrategy === "uuid"
4647+ )
4648+ c += ` TEXT `
46444649 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 )
46474651 c += " DEFAULT " + column . default
46484652 if (
46494653 column . isGenerated &&
46504654 column . generationStrategy === "uuid"
46514655 )
4652- c += ` TEXT DEFAULT ${ this . driver . uuidGenerator } `
4656+ c += ` DEFAULT ${ this . driver . uuidGenerator } `
46534657
46544658 return c
46554659 }
You can’t perform that action at this time.
0 commit comments