diff --git a/scripts/build.sh b/scripts/build.sh index cc60369..9e47232 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -50,6 +50,9 @@ fi docker compose up --wait --wait-timeout 30 -d "${base_or_head:-head}" initdb ls ./schema/ | xargs -I{} bash -c "set -e; $(declare -f query_file); query_file \"$(db dnim)\" ./schema/{}" -cd ../ + +if [[ -n "$rev" ]]; then + cd ../ +fi query_file $(db dnim) ./migrations/ensure_seeded.sql