fix: gen-migrations
Some checks reported warnings
gen-migrations / gen-migrations (push) Has been cancelled
Some checks reported warnings
gen-migrations / gen-migrations (push) Has been cancelled
This commit is contained in:
parent
9569e36972
commit
da31970db6
@ -1,6 +1,6 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
set -xe
|
set -e
|
||||||
|
|
||||||
source ./scripts/common.sh
|
source ./scripts/common.sh
|
||||||
source ./scripts/env.sh ./.env.schema
|
source ./scripts/env.sh ./.env.schema
|
||||||
@ -35,7 +35,7 @@ if [[ ! -f "$migration" ]]; then
|
|||||||
./scripts/build.sh base "$base" 1>&2 || (echo "base failed to build" && exit 1)
|
./scripts/build.sh base "$base" 1>&2 || (echo "base failed to build" && exit 1)
|
||||||
./scripts/build.sh head "$head" 1>&2 || (echo "head failed to build" && exit 1)
|
./scripts/build.sh head "$head" 1>&2 || (echo "head failed to build" && exit 1)
|
||||||
|
|
||||||
until pg_isready --quiet -p 5432 && pg_isready --quiet -p 5433; do true; done;
|
until pg_isready --quiet --user $POSTGRES_USER -p 5432 && pg_isready --user $POSTGRES_USER --quiet -p 5433; do true; done;
|
||||||
|
|
||||||
migra --unsafe "$(db 5432)" "$(db 5433)" || echo "migra exited with code $?. this is /probably/ fine" 1>&2
|
migra --unsafe "$(db 5432)" "$(db 5433)" || echo "migra exited with code $?. this is /probably/ fine" 1>&2
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user