-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ON UPDATE / ON DELETE CASCADE clause for the powa_extensions FK.
Thanks to Andriy Bartash for the report.
- Loading branch information
Showing
2 changed files
with
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
--\echo Use "ALTER EXTENSION powa" to load this file. \quit | ||
|
||
ALTER TABLE public.powa_extensions DROP CONSTRAINT powa_extensions_srvid_fkey; | ||
ALTER TABLE public.powa_extensions ADD | ||
FOREIGN KEY (srvid) REFERENCES public.powa_servers (id) | ||
MATCH FULL ON UPDATE CASCADE ON DELETE CASCADE; |
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