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:
Nikhil Mohite
2021-07-30 13:21:38 +05:30
committed by Akshay Joshi
parent f6ac0d5877
commit 6021e07761
795 changed files with 1647 additions and 1597 deletions

View File

@@ -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;

View File

@@ -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;