This commit is contained in:
sparkyx 2007-10-28 19:59:00 +00:00
parent 8a917b22e2
commit 2b4d24631e
11 changed files with 1659 additions and 2905 deletions

View file

@ -1,4 +1,4 @@
pg_dump -O -U phpcompta -s mod1|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" > schema.sql
pg_dump -O -U phpcompta -s mod1|grep -v "COMMENT ON SCHEMA public IS 'Standard public schema';" |sed "/^--/d" > schema.sql
awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql
awk '/CREATE DOMAIN/,/;/ { print $0;}' < schema.sql > table.sql
awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql >> table.sql
@ -19,5 +19,5 @@ awk '/COMMENT/,/;/ {print $0;}' < schema.sql > comment.sql
sed -i -e "/ALTER TABLE.*/d" -e "/ADD CONSTRAINT/d" -e "/CREATE PROCEDURAL/d" schema.sql
grep setval schema.sql >> sequence.sql
pg_dump -O -U phpcompta -D -a -O mod1 > data.sql
pg_dump -O -U phpcompta -D -a -O mod1 |sed "/^--/d" > data.sql