From 95929d107dff75fcf88f52ee5dab84b9dcc8e64e Mon Sep 17 00:00:00 2001 From: Maikel Maas Date: Fri, 22 Mar 2024 17:31:06 +0100 Subject: [PATCH] fix: removed not null constraint from the SQL statement that adds the origin column --- .../src/migrations/sqlite/1710438363002-CreateContacts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-store/src/migrations/sqlite/1710438363002-CreateContacts.ts b/packages/data-store/src/migrations/sqlite/1710438363002-CreateContacts.ts index 51af808a3..dababe69d 100644 --- a/packages/data-store/src/migrations/sqlite/1710438363002-CreateContacts.ts +++ b/packages/data-store/src/migrations/sqlite/1710438363002-CreateContacts.ts @@ -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`);