mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Revisit all the CREATE and DROP DDL's to add appropriate 'IF EXISTS', 'CASCADE' and 'CREATE OR REPLACE'. Fixes #5741
This commit is contained in:
committed by
Akshay Joshi
parent
f6ac0d5877
commit
6021e07761
@@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS public.newtable3
|
||||
)
|
||||
;
|
||||
|
||||
ALTER TABLE public.newtable2
|
||||
ALTER TABLE IF EXISTS public.newtable2
|
||||
ADD FOREIGN KEY (table1_id)
|
||||
REFERENCES public.newtable1 (id)
|
||||
NOT VALID;
|
||||
|
||||
@@ -28,7 +28,7 @@ WITH (
|
||||
OIDS = FALSE
|
||||
);
|
||||
|
||||
ALTER TABLE public.newtable2
|
||||
ALTER TABLE IF EXISTS public.newtable2
|
||||
ADD FOREIGN KEY (table1_id)
|
||||
REFERENCES public.newtable1 (id)
|
||||
NOT VALID;
|
||||
|
||||
Reference in New Issue
Block a user