Skip to content

Commit

Permalink
fix: Allowing null values of enum type column
Browse files Browse the repository at this point in the history
  • Loading branch information
zoemaas committed Mar 22, 2024
1 parent d7a6ec1 commit a4bc42b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class CreateContacts1710941197348 implements MigrationInterface {
name = 'CreateContacts1710941197348'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "PartyType" ADD COLUMN "origin" varchar CHECK( "origin" IN ('internal', 'external') ) NOT NULL`)
await queryRunner.query(`ALTER TABLE "PartyType" ADD COLUMN "origin" varchar CHECK( "origin" IN ('internal', 'external') )`)
}

public async down(queryRunner: QueryRunner): Promise<void> {
Expand Down

0 comments on commit a4bc42b

Please sign in to comment.