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
3c7189c657
commit
d5749b0cde
@ -35,16 +35,8 @@ if [[ ! -f "$migration" ]]; then
|
||||
./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)
|
||||
|
||||
waited=0
|
||||
until pg_isready --quiet --username "$POSTGRES_USER" -p 5432 && \
|
||||
pg_isready --quiet --username "$POSTGRES_USER" -p 5433; do
|
||||
if [[ "$waited" = 10 ]]; then
|
||||
docker compose logs
|
||||
exit 1
|
||||
fi
|
||||
waited=$(($waited + 1));
|
||||
sleep 1;
|
||||
done;
|
||||
until pg_isready --quiet -U "$POSTGRES_USER" -p 5432 && \
|
||||
pg_isready --quiet -U "$POSTGRES_USER" -p 5433; do true; done;
|
||||
|
||||
migra --unsafe "$(db 5432)" "$(db 5433)" || echo "migra exited with code $?. this is /probably/ fine" 1>&2
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user