MOPC-App/prisma/migrations
Matt 1233cdd22c Fix phase7 FK rename migration: drop old roundId before rename
The pipeline migration (20260213) added stageId columns while keeping
the original roundId columns as nullable. The rename migration tried
to RENAME stageId TO roundId but failed because roundId already existed.
Fix: DROP the old roundId column first, then rename stageId → roundId.
Also restore FK constraints on ConflictOfInterest and TaggingJob.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 23:16:06 +01:00
..
20260130000000_init Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260202000000_prototype1_improvements Fix migration: skip inviteToken columns and index that already exist in production 2026-02-02 17:17:55 +01:00
20260202100000_add_award_ai_toggle Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260202120000_decouple_projects_from_rounds Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260203000000_add_ai_usage_log Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260203100000_add_invite_token_columns Fix multiple UI/UX issues and invite token migration 2026-02-03 15:25:28 +01:00
20260203200000_add_onboarding_system Add background filtering jobs, improved date picker, AI reasoning display 2026-02-03 19:48:41 +01:00
20260203210000_add_filtering_job Add background filtering jobs, improved date picker, AI reasoning display 2026-02-03 19:48:41 +01:00
20260203220000_add_in_app_notifications Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260204000000_add_round_entry_notification Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260204100000_add_round_sort_order Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260204140000_add_user_bio Add per-round assignment constraints (min/max per judge) 2026-02-04 16:01:18 +01:00
20260204150000_add_assignment_constraints Add per-round assignment constraints (min/max per judge) 2026-02-04 16:01:18 +01:00
20260205000000_add_project_tag_and_assignment_job Make migrations idempotent and add missing tables 2026-02-05 11:09:37 +01:00
20260205100000_add_tagging_job Convert AI tagging to background job with progress tracking 2026-02-05 11:48:57 +01:00
20260205200000_add_user_country Add migration for User.country column 2026-02-05 13:58:11 +01:00
20260205210000_fix_assignment_job_updated_at Fix AI assignment errors and tag matching 2026-02-05 14:14:19 +01:00
20260205220000_add_suggestions_to_assignment_job Fix AI suggestions not displaying after job completion 2026-02-05 14:38:43 +01:00
20260205223133_add_15_features Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260207000000_universal_apply_programid Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260208000000_add_missing_fks_indexes Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260210000000_fix_round_delete_cascades Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260211000000_add_file_requirements Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260211100000_add_missing_schema_elements Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260211120000_add_award_vote_composite_index Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260212000000_add_live_voting_enhancements Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260213000000_add_pipeline_stage_system Fix migration: drop RoundTemplate before RoundType enum 2026-02-13 19:45:34 +01:00
20260214000000_simplify_routing_to_award_assignment Simplify routing to award assignment, seed all CSV entries, fix category mapping 2026-02-15 14:25:05 +01:00
20260215000000_add_competition_round_architecture Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260215100000_add_self_service_fields Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
20260215200000_phase7_fk_renames Fix phase7 FK rename migration: drop old roundId before rename 2026-02-15 23:16:06 +01:00
20260215200001_phase7_drop_legacy Competition/Round architecture: full platform rewrite (Phases 1-9) 2026-02-15 23:04:15 +01:00
migration_lock.toml Apply full refactor updates plus pipeline/email UX confirmations 2026-02-14 15:26:42 +01:00