Skip different schema version migrations

This commit is contained in:
Stephanos A
2026-06-29 23:55:24 +03:00
parent f069ee985d
commit 140a989d34

View File

@@ -3,7 +3,11 @@ set -e
echo "🔍 Checking for failed migrations..."
# Mark the specific failed migration as applied
# Mark legacy migrations as applied (these are from an old schema that doesn't match current DB)
# These migrations were designed for a different schema version and should be skipped
npx prisma migrate resolve --applied "20240100000000_fix_failed_migration_state" || true
npx prisma migrate resolve --applied "20240101000000_individual_tickets_no_timezone" || true
npx prisma migrate resolve --applied "20240102000000_drop_ticket_column_defaults" || true
npx prisma migrate resolve --applied "20241201000000_remove_station_timezone" || true
echo "✅ Migration resolution complete"