Go to file
2023-10-26 13:45:45 +03:00
.github/workflows TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
apps/akm TD-686: Adopts opentelemetry API (#19) 2023-10-26 13:45:45 +03:00
config TD-642: fix with test-transaction (#13) 2023-08-21 17:41:40 +03:00
migrations TD-651: Implement RevokeApiKey (#8) 2023-07-21 14:40:50 +03:00
psql-migration@c84b06fc7e TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
.dockerignore TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
.env TD-642: fix with test-transaction (#13) 2023-08-21 17:41:40 +03:00
.gitignore TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
.gitmodules TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
compose.tracing.yaml TD-686: Adopts opentelemetry API (#19) 2023-10-26 13:45:45 +03:00
compose.yaml TD-686: Adopts opentelemetry API (#19) 2023-10-26 13:45:45 +03:00
Dockerfile OPS-268: Change user (#17) 2023-10-19 10:43:54 +03:00
Dockerfile.dev TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
elvis.config Epic/td 651/deploy akm (#12) 2023-08-07 11:46:13 +03:00
LICENSE TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
Makefile TD-686: Adopts opentelemetry API (#19) 2023-10-26 13:45:45 +03:00
README.md TD-635: Add Api Key Management implementation (#1) 2023-06-20 12:10:38 +05:00
rebar.config TD-686: Adopts opentelemetry API (#19) 2023-10-26 13:45:45 +03:00
rebar.lock TD-686: Adopts opentelemetry API (#19) 2023-10-26 13:45:45 +03:00
renovate.json Add renovate.json (#4) 2023-06-20 18:39:54 +05:00

api-key-mgmt-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.