modcomms/backend/alembic
michael 94a37f3ed8 Add migration to cleanup duplicate dropdown options
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>
2026-01-23 13:22:44 -06:00
..
versions Add migration to cleanup duplicate dropdown options 2026-01-23 13:22:44 -06:00
env.py permissions changes 2025-12-18 16:51:27 +00:00
script.py.mako permissions changes 2025-12-18 16:51:27 +00:00