mirror of
https://github.com/valitydev/dominant-v2.git
synced 2024-11-06 00:35:21 +00:00
604d1b5b78
* IMP-284: Implement new DB schema * WIP * WIP * SQL Request for commiting * Implement RepositoryClient and UserOpManagement * Raw integration tests * WIP Testing * WIP Testing * Tests WIP * Insert objects rebuild * Remade sql requests and make test work * Extra tests * Extra tests * Update/Delete work * Rename everything from dmt_v2 to dmt |
||
---|---|---|
apps | ||
config | ||
migrations | ||
psql-migration@c84b06fc7e | ||
.env | ||
.gitignore | ||
.gitmodules | ||
.tool-versions | ||
compose.tracing.yaml | ||
compose.yaml | ||
Dockerfile | ||
Dockerfile.dev | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
rebar.config | ||
rebar.lock |
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.