Changes between Initial Version and Version 1 of Ticket #26535


Ignore:
Timestamp:
Apr 25, 2016, 9:49:27 AM (9 years ago)
Author:
Tim Graham
Comment:

Could you provide a sample project that reproduces the issue?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26535 – Description

    initial v1  
    88
    99Each competitor in different sports has for their model/class:
    10 
     10{{{
    1111   class Meta:
    1212       unique_together = ('event', 'number')
    13 
     13}}}
    1414i.e. ensure a unique starting number in an event, now we are relaxing (removing this constraint)
    1515this but having issues when migrating.
     
    2626…and now when doing migration - for all tables where it is represented as (i) everything
    2727goes well, but in tables where (ii) the following error:
    28 
     28{{{
    2929 File "/Users/XXX/.virtualenvs/ssi195_2711/lib/python2.7/site-packages/django/db/migrations/migration.py", line 123, in apply
    3030   operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
     
    3636   ", ".join(columns),
    3737ValueError: Found wrong number (0) of constraints for match_ppc_ppccompetitor(event_id, number)
    38 
     38}}}
    3939So seems to need to do some migrations manually and no biggie - but yet strange and unsure if Django or pg issue….
    4040
Back to Top