Fix migrations naming
This commit is contained in:
parent
045120ce20
commit
33b293f2bb
@ -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):
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user