Migration 011 removed UNIQUE constraint (profile_id, date) to allow multiple rest days per date, but INSERT still used ON CONFLICT. Error: psycopg2.errors.InvalidColumnReference: there is no unique or exclusion constraint matching the ON CONFLICT specification Solution: Remove ON CONFLICT clause, use plain INSERT. Multiple entries per date now allowed. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| routers | ||
| apply_v9c_migration.py | ||
| auth.py | ||
| check_features.py | ||
| db_init.py | ||
| db.py | ||
| Dockerfile | ||
| feature_logger.py | ||
| main_old.py | ||
| main.py | ||
| migrate_to_postgres.py | ||
| models.py | ||
| requirements.txt | ||
| schema.sql | ||
| startup.sh | ||