Skip to content

Commit bbe722b

Browse files
fix(ci): dev migrations use db:push only, matching previous behavior
1 parent 11d285d commit bbe722b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/migrations.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ jobs:
6363
exit 1
6464
fi
6565
66-
echo "Applying versioned migrations (db:migrate)"
67-
bun run ./scripts/migrate.ts
6866
if [ "${ENVIRONMENT}" = "dev" ]; then
69-
echo "Dev environment — also pushing unversioned schema drift (db:push)"
67+
echo "Dev environment — pushing schema directly (db:push)"
7068
bun run db:push --force
69+
else
70+
echo "Applying versioned migrations (db:migrate)"
71+
bun run ./scripts/migrate.ts
7172
fi

0 commit comments

Comments
 (0)