Allow schema-push to all env with Flyway (#309)

* Make Flyway schema task work with prod and sandbox

Also renamed the 'superuser' role to 'admin' since
we do not own super user in Cloud SQL.

* Allow pushing schema to all env with Flyway

Desktop schema push to production is needed in the short term.
Long-termly we need to decide if this should be kept for glass
breaking

Schema push to sandbox and production requires interactiveconfirmation.

Also fixed a typo in initialize_roles.sql.
This commit is contained in:
Weimin Yu 2019-10-10 16:32:21 -04:00 committed by GitHub
parent ce480a5191
commit c3e3a1353b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 11 deletions

View file

@ -16,7 +16,7 @@
-- This script should run once under the **'postgres'** user before any other
-- roles or users are created.
# Prevent backdoor grants through the implicit 'public' role.
-- Prevent backdoor grants through the implicit 'public' role.
REVOKE ALL PRIVILEGES ON SCHEMA public from public;
CREATE ROLE readonly;