This page is the living technical document for migration scope, decisions, limitations, and open tasks. Update it for every migration wave.
migrations/.migrations/*.sql.migrations/goose/20260414_helicopter_import_staging.sqlmigrations/goose/20260415_helicopter_import_apply.sqlmigrations/scripts/migration_helicopter.sql (deprecated helper note)docs/queue-sqs-migration.md.docs/file-manager-upload.mddocs/file-manager-attachment.mdpilot_profiles.responsible_flight_rescuer into air_rescuer_profiles.responsible_flight_rescuer.pilot_profiles.pending/uploading) into newer states (validated/processing).upload_error into failure_reason.helicopter_old_import into helicopters.helicopter_old_id_map.Down keeps data as audit trail).counterservicedisabledvisibleDecision is documented in migrations/scripts/migration_helicopter.sql.
docs/queue-sqs-migration.md.file_files/attachments.photo_file_id references in contact profile tables
photo_file_id string columns.attachments + image_attachment_id/foto_attachment_id.| ID | Item | Type | Status | Owner | Notes |
|---|---|---|---|---|---|
| MIG-001 | Decide final strategy for legacy PDFs/images: automated import vs manual re-upload | Decision | Open | TBD | Blocks final cutover checklist |
| MIG-002 | Produce inventory of all legacy file references and classify critical/non-critical | Analysis | Open | TBD | Include PDFs + photos |
| MIG-003 | If automation chosen, implement importer to populate file_files and attachments safely |
Engineering | Open | TBD | Prefer idempotent batch import with audit log |
| MIG-004 | Define mapping from legacy contact photo_file_id to new attachment model |
Engineering | Open | TBD | Covers pilot/doctor/air rescuer/technician/FA/staff |
| MIG-005 | Document and execute SQS backlog drain/discard plan before production cutover | Ops | Open | TBD | See queue migration doc |
| MIG-006 | Create client-facing exception list for data that cannot/will not be migrated | Governance | Open | TBD | Must be approved before go-live |
pending to published, no legacy SQS dependency).