Fix migrations naming

This commit is contained in:
Prathamesh Musale 2022-05-09 17:22:19 +05:30
parent 045120ce20
commit 33b293f2bb
11 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Schemas and utils for IPLD ETH Postgres database
* Edit [startup_script.sh](./scripts/startup_script.sh) to change the number of migrations to be run: * Edit [startup_script.sh](./scripts/startup_script.sh) to change the number of migrations to be run:
```bash ```bash
./goose -dir migrations/vulcanizedb postgres "$VDB_PG_CONNECT" up-to 23 ./goose -dir migrations/vulcanizedb postgres "$VDB_PG_CONNECT" up-to 22
``` ```
* In another `ipld-eth-db` terminal window, build an image `migrations-test` using [Dockerfile](./db/Dockerfile): * In another `ipld-eth-db` terminal window, build an image `migrations-test` using [Dockerfile](./db/Dockerfile):

View File

@ -8,7 +8,7 @@ VDB_PG_CONNECT=postgresql://$DATABASE_USER:$DATABASE_PASSWORD@$DATABASE_HOSTNAME
# Run the DB migrations # Run the DB migrations
echo "Connecting with: $VDB_PG_CONNECT" echo "Connecting with: $VDB_PG_CONNECT"
echo "Running database migrations" echo "Running database migrations"
./goose -dir migrations/vulcanizedb postgres "$VDB_PG_CONNECT" up-to 23 ./goose -dir migrations/vulcanizedb postgres "$VDB_PG_CONNECT" up-to 22
# If the db migrations ran without err # If the db migrations ran without err
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then