-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from ai-cfia/63-Rework-the-delete-of-a-folder-…
…to-save-for-training 63 rework the delete of a folder to save for training
- Loading branch information
Showing
9 changed files
with
667 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- SEED_OBJECT --- | ||
-- delete actual constraint | ||
ALTER TABLE "nachet_0.0.11"."seed_obj" DROP CONSTRAINT IF EXISTS seed_obj_object_id_fkey; | ||
-- new constraint | ||
ALTER TABLE "nachet_0.0.11"."seed_obj" | ||
ADD CONSTRAINT seed_obj_object_id_fkey FOREIGN KEY (object_id) | ||
REFERENCES "nachet_0.0.11"."object"(id) ON DELETE CASCADE; | ||
|
||
--- OBJECT --- | ||
-- delete actual constraint | ||
ALTER TABLE "nachet_0.0.11"."object" DROP CONSTRAINT IF EXISTS object_inference_id_fkey; | ||
-- new constraint | ||
ALTER TABLE "nachet_0.0.11"."object" | ||
ADD CONSTRAINT object_inference_id_fkey FOREIGN KEY (inference_id) | ||
REFERENCES "nachet_0.0.11"."inference"(id) ON DELETE CASCADE; | ||
|
||
--- INFERENCE --- | ||
-- delete actual constraint | ||
ALTER TABLE "nachet_0.0.11"."inference" DROP CONSTRAINT IF EXISTS inference_picture_id_fkey; | ||
-- new constraint | ||
ALTER TABLE "nachet_0.0.11"."inference" | ||
ADD CONSTRAINT inference_picture_id_fkey FOREIGN KEY (picture_id) | ||
REFERENCES "nachet_0.0.11"."picture"(id) ON DELETE CASCADE; | ||
|
||
--- PICTURE_SEED --- | ||
-- delete actual constraint | ||
ALTER TABLE "nachet_0.0.11"."picture_seed" DROP CONSTRAINT IF EXISTS picture_seed_picture_id_fkey; | ||
-- new constraint | ||
ALTER TABLE "nachet_0.0.11"."picture_seed" | ||
ADD CONSTRAINT picture_seed_picture_id_fkey FOREIGN KEY (picture_id) | ||
REFERENCES "nachet_0.0.11"."picture"(id) ON DELETE CASCADE; | ||
|
||
--- PICTURE --- | ||
-- delete actual constraint | ||
ALTER TABLE "nachet_0.0.11"."picture" DROP CONSTRAINT IF EXISTS picture_picture_set_id_fkey; | ||
-- new constraint | ||
ALTER TABLE "nachet_0.0.11"."picture" | ||
ADD CONSTRAINT picture_picture_set_id_fkey FOREIGN KEY (picture_set_id) | ||
REFERENCES "nachet_0.0.11"."picture_set"(id) ON DELETE CASCADE; |
Oops, something went wrong.