From 7c2431c6528a160ee3d4bb03ba49bf694c1faed5 Mon Sep 17 00:00:00 2001 From: Dhruv Dhruv Date: Wed, 5 Jun 2024 13:40:06 +0000 Subject: [PATCH] fix: [CDE-62]: Fixing foreign key constraint in gitspaces table, making gits_infra_provisioned_id nullable (#2079) --- .../database/migrate/postgres/0052_create_cde_tables.up.sql | 2 +- app/store/database/migrate/sqlite/0052_create_cde_tables.up.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/database/migrate/postgres/0052_create_cde_tables.up.sql b/app/store/database/migrate/postgres/0052_create_cde_tables.up.sql index 1aacea2ec..f84e64332 100644 --- a/app/store/database/migrate/postgres/0052_create_cde_tables.up.sql +++ b/app/store/database/migrate/postgres/0052_create_cde_tables.up.sql @@ -142,7 +142,7 @@ CREATE TABLE gitspaces gits_updated BIGINT NOT NULL, gits_last_used BIGINT NOT NULL, gits_total_time_used BIGINT NOT NULL, - gits_infra_provisioned_id INTEGER NOT NULL, + gits_infra_provisioned_id INTEGER, gits_tracked_changes TEXT, UNIQUE (gits_gitspace_config_id, gits_space_id), CONSTRAINT fk_gits_gitspace_config_id FOREIGN KEY (gits_gitspace_config_id) diff --git a/app/store/database/migrate/sqlite/0052_create_cde_tables.up.sql b/app/store/database/migrate/sqlite/0052_create_cde_tables.up.sql index 0efdf66db..ba3555c71 100644 --- a/app/store/database/migrate/sqlite/0052_create_cde_tables.up.sql +++ b/app/store/database/migrate/sqlite/0052_create_cde_tables.up.sql @@ -142,7 +142,7 @@ CREATE TABLE gitspaces gits_updated BIGINT NOT NULL, gits_last_used BIGINT NOT NULL, gits_total_time_used BIGINT NOT NULL, - gits_infra_provisioned_id INTEGER NOT NULL, + gits_infra_provisioned_id INTEGER, gits_tracked_changes TEXT, UNIQUE (gits_gitspace_config_id, gits_space_id), CONSTRAINT fk_gits_gitspace_config_id FOREIGN KEY (gits_gitspace_config_id)