Unpackaged: Make it work
This commit is contained in:
parent
87dec4dbe4
commit
a25efc3fc5
@ -10,6 +10,7 @@ echo "-- Script generated by $0 on `date`" > ${output}
|
||||
cat ${input} |
|
||||
grep '^ *CREATE OR REPLACE FUNCTION' |
|
||||
grep -v ' cartodb\.' | # should only match DDL hooks
|
||||
grep -v '.*\quit.*' |
|
||||
sed 's/).*$/)/' |
|
||||
sed 's/DEFAULT [^ ,)]*//g' |
|
||||
sed 's/CREATE OR REPLACE FUNCTION /ALTER FUNCTION public./' |
|
||||
@ -19,7 +20,7 @@ cat ${input} |
|
||||
cat >> ${output}
|
||||
|
||||
# Upgrade all functions
|
||||
cat ${input} | grep -v 'duplicated extension$' >> ${output}
|
||||
cat ${input} | grep -v 'duplicated extension$' | grep -v '\quit$' >> ${output}
|
||||
|
||||
# Migrate CDB_TableMetadata
|
||||
cat >> ${output} <<'EOF'
|
||||
|
Loading…
Reference in New Issue
Block a user