-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(constraints): correct wrong constraint names
- Loading branch information
1 parent
f985e70
commit 5a96cf9
Showing
2 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
This file is part of Giswater 3 | ||
The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. | ||
This version of Giswater is provided by Giswater Association | ||
*/ | ||
|
||
|
||
SET search_path = SCHEMA_NAME, public, pg_catalog; | ||
|
||
|
||
ALTER TABLE node DROP CONSTRAINT arc_macrominsector_id_fkey; | ||
ALTER TABLE node ADD CONSTRAINT node_macrominsector_id_fkey FOREIGN KEY (macrominsector_id) | ||
REFERENCES macrominsector(macrominsector_id) ON UPDATE CASCADE ON DELETE RESTRICT; | ||
|
||
ALTER TABLE connec DROP CONSTRAINT node_expl_id2_fkey; | ||
ALTER TABLE connec ADD CONSTRAINT connec_expl_id2_fkey FOREIGN KEY (expl_id2) | ||
REFERENCES exploitation(expl_id) ON UPDATE CASCADE ON DELETE RESTRICT; |