Changes between Initial Version and Version 1 of Ticket #26535
- Timestamp:
- Apr 25, 2016, 9:49:27 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #26535 – Description
initial v1 8 8 9 9 Each competitor in different sports has for their model/class: 10 10 {{{ 11 11 class Meta: 12 12 unique_together = ('event', 'number') 13 13 }}} 14 14 i.e. ensure a unique starting number in an event, now we are relaxing (removing this constraint) 15 15 this but having issues when migrating. … … 26 26 …and now when doing migration - for all tables where it is represented as (i) everything 27 27 goes well, but in tables where (ii) the following error: 28 28 {{{ 29 29 File "/Users/XXX/.virtualenvs/ssi195_2711/lib/python2.7/site-packages/django/db/migrations/migration.py", line 123, in apply 30 30 operation.database_forwards(self.app_label, schema_editor, old_state, project_state) … … 36 36 ", ".join(columns), 37 37 ValueError: Found wrong number (0) of constraints for match_ppc_ppccompetitor(event_id, number) 38 38 }}} 39 39 So seems to need to do some migrations manually and no biggie - but yet strange and unsure if Django or pg issue…. 40 40