From a4bc42b404f26aebe110471b5248bbdaf1a672ba Mon Sep 17 00:00:00 2001 From: Maikel Maas Date: Fri, 22 Mar 2024 16:15:44 +0100 Subject: [PATCH] fix: Allowing null values of enum type column --- .../src/migrations/sqlite/1710941197348-CreateContacts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-store/src/migrations/sqlite/1710941197348-CreateContacts.ts b/packages/data-store/src/migrations/sqlite/1710941197348-CreateContacts.ts index 71ff03557..21067c710 100644 --- a/packages/data-store/src/migrations/sqlite/1710941197348-CreateContacts.ts +++ b/packages/data-store/src/migrations/sqlite/1710941197348-CreateContacts.ts @@ -4,7 +4,7 @@ export class CreateContacts1710941197348 implements MigrationInterface { name = 'CreateContacts1710941197348' public async up(queryRunner: QueryRunner): Promise { - 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 {