mirror of https://github.com/harness/drone.git
fix: [CDE-62]: Adding gitspaces FK post table creation in infra_provisioned table in postgres (#2084)
parent
35f8caeedf
commit
58bf870038
|
@ -118,10 +118,6 @@ CREATE TABLE infra_provisioned
|
|||
REFERENCES infra_provider_resources (ipreso_id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
ON DELETE NO ACTION,
|
||||
CONSTRAINT fk_iprov_gitspace_id FOREIGN KEY (iprov_gitspace_id)
|
||||
REFERENCES gitspaces (gits_id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
ON DELETE NO ACTION,
|
||||
CONSTRAINT fk_iprov_space_id FOREIGN KEY (iprov_space_id)
|
||||
REFERENCES spaces (space_id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
|
@ -174,4 +170,10 @@ CREATE TABLE gitspace_events
|
|||
REFERENCES spaces (space_id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
ON DELETE CASCADE
|
||||
);
|
||||
);
|
||||
|
||||
ALTER TABLE infra_provisioned
|
||||
ADD CONSTRAINT fk_iprov_gitspace_id FOREIGN KEY (iprov_gitspace_id)
|
||||
REFERENCES gitspaces (gits_id) MATCH SIMPLE
|
||||
ON UPDATE NO ACTION
|
||||
ON DELETE NO ACTION;
|
||||
|
|
Loading…
Reference in New Issue