Skip to content

Commit

Permalink
fix: removed not null constraint from the SQL statement that adds the…
Browse files Browse the repository at this point in the history
… origin column
  • Loading branch information
zoemaas committed Mar 22, 2024
1 parent eff3432 commit 95929d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class CreateContacts1710438363002 implements MigrationInterface {

await queryRunner.query(`ALTER TABLE "Identity" ADD COLUMN "owner_id" text`);
await queryRunner.query(`ALTER TABLE "Identity" ADD COLUMN "tenant_id" text`);
await queryRunner.query(`ALTER TABLE "Identity" ADD COLUMN "origin" varchar CHECK( "origin" IN ('INTERNAL', 'EXTERNAL') ) NOT NULL`);
await queryRunner.query(`ALTER TABLE "Identity" ADD COLUMN "origin" varchar CHECK( "origin" IN ('internal', 'external') )`);

await queryRunner.query(`ALTER TABLE "CorrelationIdentifier" ADD COLUMN "owner_id" text`);
await queryRunner.query(`ALTER TABLE "CorrelationIdentifier" ADD COLUMN "tenant_id" text`);
Expand Down

0 comments on commit 95929d1

Please sign in to comment.