Separate sql instead of a big sql

This commit is contained in:
sparkyx 2004-09-22 19:21:57 +00:00
parent b3012e966c
commit 33a1616a67
28 changed files with 6539 additions and 133 deletions

7
sql/mod1/make-sql Executable file
View file

@ -0,0 +1,7 @@
pg_dump -s mod1 > schema.sql
awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql
awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql > table.sql
awk '/ALTER TABLE/,/;/ { print $0;}' < schema.sql > constraint.sql
grep setval schema.sql >> sequence.sql
pg_dump -D -a -O mod1 > data.sql