fix: diff should skip schemaless migrations
All checks were successful
gen-migrations / gen-migrations (push) Successful in 6s
All checks were successful
gen-migrations / gen-migrations (push) Successful in 6s
This commit is contained in:
Submodule migrations updated: 359aa9bf7c...2d99639941
@@ -23,13 +23,14 @@ if [[ -z "$base" ]] || [[ -z "$head" ]]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if ! (git diff --quiet "$base..$head" -- ./schema); then
|
||||
schema_changed=$(git diff --quiet "$base" "$head" -- ./schema)
|
||||
schema_changed_exit=$?
|
||||
if [[ $schema_changed_exit="1" ]]; then
|
||||
echo ""
|
||||
exit 0;
|
||||
fi;
|
||||
|
||||
if [[ ! -f "$migration" ]]; then
|
||||
docker compose down -v
|
||||
./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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user