From e9992f56a5b2ee4776a2acb9144be7dc63e89a2a Mon Sep 17 00:00:00 2001 From: Steve Blamey Date: Wed, 12 Aug 2020 12:35:35 +0100 Subject: [PATCH] Remove temporary SQL commands They corrected some issues left over from bad migrations, restoring some sropped views. --- schema/database/postgresql/update-dist-dbs.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/schema/database/postgresql/update-dist-dbs.sh b/schema/database/postgresql/update-dist-dbs.sh index 0dec54d1..8be80792 100644 --- a/schema/database/postgresql/update-dist-dbs.sh +++ b/schema/database/postgresql/update-dist-dbs.sh @@ -5,8 +5,6 @@ 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 @@ -14,8 +12,6 @@ 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 @@ -23,8 +19,6 @@ 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