Merge pull request #359 from Tria-plc/alpha

fix(passenger-api): resolve all pre-init legacy migrations
This commit is contained in:
Stephanos A.
2026-06-30 00:06:27 +03:00
committed by GitHub

View File

@@ -5,9 +5,12 @@ echo "🔍 Checking for failed migrations..."
# 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
# All migrations before 20260605195213_init should be resolved as they modify tables that don't exist yet
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
npx prisma migrate resolve --applied "20250106070000_add_gender_to_traveler_profile" || true
npx prisma migrate resolve --applied "20260101000000_add_configurable_fare_system" || true
echo "✅ Migration resolution complete"