Fix Bug : compatibility postgresql 16
This commit is contained in:
parent
8e9bc7577e
commit
4b2adca0cd
8 changed files with 73 additions and 21 deletions
|
|
@ -9,7 +9,7 @@ export TEMPLATE=${DOMAIN}mod1
|
|||
psql -X $TEMPLATE -c "delete from user_local_pref"
|
||||
psql -X $TEMPLATE -c "delete from user_local_pref"
|
||||
|
||||
pg_dump -Ox -U dany -s $TEMPLATE|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" |sed "/^--/d" > schema.sql
|
||||
pg_dump -O -U dany -s $TEMPLATE|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" |sed "/^--/d" > schema.sql
|
||||
sed -i -e "/COMMENT ON EXTENSION/d" schema.sql
|
||||
sed -i -e "/CREATE EXTENSION/d" schema.sql
|
||||
sed -ne '0,/ADD CONSTRAINT/p' schema.sql > tmpSchema.sql
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue