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> |
||
|---|---|---|
| .. | ||
| alembic | ||
| app | ||
| .env.example | ||
| alembic.ini | ||
| Dockerfile | ||
| requirements.txt | ||