Database change
This commit is contained in:
parent
ff8a45b540
commit
0667b4730e
4 changed files with 6 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
pg_dump -U phpcompta -s mod2 | awk '!/--/ {if ( ! /^$/) print $0;}' > schema.sql
|
||||
pg_dump -O -U phpcompta -s mod2 | awk '!/--/ {if ( ! /^$/) print $0;}' > schema.sql
|
||||
awk '/SEQUENCE/,/;/ { print $0;}' < schema.sql > sequence.sql
|
||||
awk '/CREATE TABLE/,/;/ { print $0;}' < schema.sql > table.sql
|
||||
awk '/CREATE VIEW/,/;/ { print $0;}' < schema.sql > view.sql
|
||||
|
|
@ -8,5 +8,5 @@ awk '/CREATE FUNCTION/,/LANGUAGE/ { print $0;}' < schema.sql > function.sql
|
|||
awk '/COMMENT/,/;/ {print $0;}' < schema.sql > comment.sql
|
||||
|
||||
grep setval schema.sql >> sequence.sql
|
||||
pg_dump -U phpcompta -D -a -O mod2 > data.sql
|
||||
pg_dump -O -U phpcompta -D -a -O mod2 > data.sql
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue