fix: [CDE-62]: Fixing foreign key constraint in gitspaces table, making gits_infra_provisioned_id nullable (#2079)

This commit is contained in:
Dhruv Dhruv 2024-06-05 13:40:06 +00:00 committed by Harness
parent 2f8900e463
commit 7c2431c652
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)