Skip to content

Commit

Permalink
Remove temporary SQL commands
Browse files Browse the repository at this point in the history
They corrected some issues left over from bad migrations,
restoring some sropped views.
  • Loading branch information
steveblamey committed Aug 12, 2020
1 parent dfaad6a commit e9992f5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions schema/database/postgresql/update-dist-dbs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,20 @@
podman exec -i uzerp-postgres dropdb -U postgres demo
podman exec -i uzerp-postgres createdb -U postgres --locale=en_GB.UTF-8 'demo'
podman exec -i uzerp-postgres pg_restore -U postgres --dbname=demo < $1/schema/database/postgresql/uzerp-demo-dist.sql
podman exec -i uzerp-postgres psql -U postgres --dbname=demo -c "select deps_restore_dependencies('public', 'po_linesoverview');"
podman exec -i uzerp-postgres psql -U postgres --dbname=demo -c "select deps_restore_dependencies('public', 'companyoverview');"
podman exec -i uzerp-app-dev php vendor/bin/phinx migrate -vv -e demo -c schema/database/postgresql/phinx-dumps.yml
podman exec -i uzerp-postgres pg_dump -U postgres --dbname=demo -F c > $1/schema/database/postgresql/uzerp-demo-dist.sql
podman exec -i uzerp-postgres dropdb -U postgres demo

podman exec -i uzerp-postgres dropdb -U postgres base
podman exec -i uzerp-postgres createdb -U postgres --locale=en_GB.UTF-8 'base'
podman exec -i uzerp-postgres pg_restore -U postgres --dbname=base < $1/schema/database/postgresql/uzerp-base-dist.sql
podman exec -i uzerp-postgres psql -U postgres --dbname=base -c "select deps_restore_dependencies('public', 'po_linesoverview');"
podman exec -i uzerp-postgres psql -U postgres --dbname=base -c "select deps_restore_dependencies('public', 'companyoverview');"
podman exec -i uzerp-app-dev php vendor/bin/phinx migrate -vv -e base -c schema/database/postgresql/phinx-dumps.yml
podman exec -i uzerp-postgres pg_dump -U postgres --dbname=base -F c > $1/schema/database/postgresql/uzerp-base-dist.sql
podman exec -i uzerp-postgres dropdb -U postgres base

podman exec -i uzerp-postgres dropdb -U postgres starter
podman exec -i uzerp-postgres createdb -U postgres --locale=en_GB.UTF-8 'starter'
podman exec -i uzerp-postgres pg_restore -U postgres --dbname=starter < $1/schema/database/postgresql/uzerp-starter-dist.sql
podman exec -i uzerp-postgres psql -U postgres --dbname=starter -c "select deps_restore_dependencies('public', 'po_linesoverview');"
podman exec -i uzerp-postgres psql -U postgres --dbname=starter -c "select deps_restore_dependencies('public', 'companyoverview');"
podman exec -i uzerp-app-dev php vendor/bin/phinx migrate -vv -e starter -c schema/database/postgresql/phinx-dumps.yml
podman exec -i uzerp-postgres pg_dump -U postgres --dbname=starter -F c > $1/schema/database/postgresql/uzerp-starter-dist.sql
podman exec -i uzerp-postgres dropdb -U postgres starter

0 comments on commit e9992f5

Please sign in to comment.