Go to file
2024-11-04 05:33:24 +05:00
.github/workflows Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
apps Fix logs (#4) 2024-11-04 05:33:24 +05:00
config Fix logs (#4) 2024-11-04 05:33:24 +05:00
migrations IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
psql-migration@c84b06fc7e IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
.env Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
.gitignore IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
.gitmodules IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
.tool-versions IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
compose.tracing.yaml Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
compose.yaml Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
Dockerfile IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
Dockerfile.dev IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
elvis.config Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
erlang_ls.config Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
LICENSE.md Initial commit 2024-07-24 18:55:59 +05:00
Makefile IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
README.md IMP-284: Implement new DB schema (#1) 2024-10-18 03:37:46 +05:00
rebar.config Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00
rebar.lock Introduce CI and fix everything that is needed for it (#3) 2024-11-02 03:34:09 +05:00

dominant_v2

Migration

First compile migration script with

make wc-make_psql_migration

Then you can use script with

bin/psql_migration -e .env
Usage: psql_migration [-h] [-d [<dir>]] [-e [<env>]] <command>

  -h, --help  Print this help text
  -d, --dir   Migration folder [default: migrations]
  -e, --env   Environment file to search for DATABASE_URL [default: .env]
  new <name>  Create a new migration
  list        List migrations indicating which have been applied
  run         Run all migrations
  revert      Revert the last migration
  reset       Resets your database by dropping the database in your
              DATABASE_URL and then runs `setup`
  setup       Creates the database specified in your DATABASE_URL, and
              runs any existing migrations.