mirror of
https://github.com/valitydev/api-key-mgmt-v2.git
synced 2024-11-06 02:15:19 +00:00
ef01da5932
* TD-643: getApiKey implementation * Update apps/akm/src/akm_apikeys_processing.erl Co-authored-by: ndiezel0 <ndiezel0@gmail.com> * Update apps/akm/src/akm_apikeys_processing.erl Co-authored-by: ndiezel0 <ndiezel0@gmail.com> * TD-643: add basic test * TD-643: fix style * TD-643: change compose * TD-643: bump erlang * TD-643: revert erlang * TD-643: bump epgsql * TD-643: fix tests * Update Makefile * Update Makefile * TD-643: update Makefile * Update Makefile * Update Makefile * TD-643: add migrations into tests * Update Makefile * TD-643: add debug * TD-643: debug * TD-643: debug * Update Makefile * TD-643: cleanup * TD-643: fix tests * TD-643: fix style * TD-643: fix dialyzer warnings * TD-643: fix style --------- Co-authored-by: anatoliy.losev <losto@nix> Co-authored-by: ndiezel0 <ndiezel0@gmail.com> |
||
---|---|---|
.github/workflows | ||
apps/akm | ||
config | ||
migrations | ||
psql-migration@c84b06fc7e | ||
test | ||
.dockerignore | ||
.env | ||
.gitignore | ||
.gitmodules | ||
compose.yaml | ||
Dockerfile | ||
Dockerfile.dev | ||
elvis.config | ||
LICENSE | ||
Makefile | ||
README.md | ||
rebar.config | ||
rebar.lock | ||
renovate.json |
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.