NEW :
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:
parent
29f5d52e33
commit
53234e02f3
32 changed files with 4798 additions and 0 deletions
12
html/admin/sql/mod1/make-sql
Executable file
12
html/admin/sql/mod1/make-sql
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue