Skip to content

Instantly share code, notes, and snippets.

@symbiont-eric-torreborre
Last active April 28, 2020 14:44
Show Gist options
  • Save symbiont-eric-torreborre/bdda464f7c96a73a7d67efc56d4fe058 to your computer and use it in GitHub Desktop.
Save symbiont-eric-torreborre/bdda464f7c96a73a7d67efc56d4fe058 to your computer and use it in GitHub Desktop.
postgres migrate
DROP DATABASE IF EXISTS state_db;
DROP ROLE IF EXISTS datadog;
DROP ROLE IF EXISTS txe;
DROP ROLE IF EXISTS sailfish;
DROP ROLE IF EXISTS api_server;
CREATE DATABASE state_db;
#/bin/sh -x
# don't forget to change the -user name!
psql -f local_pg_setup.sql
flyway -url=jdbc:postgresql://127.0.0.1:5432/state_db -schemas=migrations,txe,sailfish -user="etorreborre" \
-password='' -locations=filesystem:migrations/state_db migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment