In order to get easier the installation and the upgrade of the database
a new module webbased has been created, the old version of install.sh
is now obsolete
This commit is contained in:
sparkyx 2005-02-06 01:05:14 +00:00
parent 29f5d52e33
commit 53234e02f3
32 changed files with 4798 additions and 0 deletions

12
html/admin/sql/mod1/make-sql Executable file
View file

@ -0,0 +1,12 @@
pg_dump -s mod1 > 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
awk '/INDEX/,/;/ { print $0;}' < schema.sql > index.sql
awk '/ALTER TABLE/,/;/ { print $0;}' < schema.sql > constraint.sql
awk '/FUNCTION/,/LANGUAGE/ { print $0;}' < schema.sql > function.sql
awk '/COMMENT/,/;/ {print $0;}' < schema.sql > comment.sql
grep setval schema.sql >> sequence.sql
pg_dump -D -a -O mod1 > data.sql