You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, foreign key constraints seem to not be created. I'm guessing this is because contribute_to_class() doesn't create a constraint? Not sure what's going on, as indexes and other stuff is created correctly. This is on Django 1.5.
I haven't had much time to investigate this further, but the following got me up and running with working constraints:
Using south, add follow as an external migration:
SOUTH_MIGRATION_MODULES = {
'follow': 'utils.external_migrations.follow', # My local migrations for external apps
}
For some reason, foreign key constraints seem to not be created. I'm guessing this is because
contribute_to_class()
doesn't create a constraint? Not sure what's going on, as indexes and other stuff is created correctly. This is on Django 1.5.I haven't had much time to investigate this further, but the following got me up and running with working constraints:
Using south, add
follow
as an external migration:Then create an initial migration and migrate:
manage.py schemamigration --initial follow manage.py migrate follow
and rinse & repeat for new fields.
The text was updated successfully, but these errors were encountered: