The staging database has duplicate sub-channels (5 "Meta", 2 "Magazine") which causes the last duplicate (with 0 proof types) to overwrite the correct one in the API response. This migration: 1. Identifies duplicate sub-channels and channels 2. Keeps the one with the most children (proof types) 3. Deletes the duplicates 4. Adds unique partial indexes to prevent future duplicates Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| 001_initial_schema.py | ||
| 002_seed_dropdown_options.py | ||
| 003_add_meta_proof_types.py | ||
| 004_cleanup_duplicate_dropdown_options.py | ||