From: Bryan Date: Sun, 12 Jan 2014 08:36:54 +0000 (+0000) Subject: fixing migration dependencies for smoother migration. X-Git-Tag: release-20150131~273 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=119237d311f0e82900840127cadab52e32929ce0;p=oweals%2Fkarmaworld.git fixing migration dependencies for smoother migration. --- diff --git a/karmaworld/apps/document_upload/migrations/0002_auto__add_field_rawdocument_user.py b/karmaworld/apps/document_upload/migrations/0002_auto__add_field_rawdocument_user.py index 6cf2bbd..59cb5a0 100644 --- a/karmaworld/apps/document_upload/migrations/0002_auto__add_field_rawdocument_user.py +++ b/karmaworld/apps/document_upload/migrations/0002_auto__add_field_rawdocument_user.py @@ -7,6 +7,10 @@ from django.db import models class Migration(SchemaMigration): + depends_on = ( + ('users', '0001_initial'), + ) + def forwards(self, orm): # Adding field 'RawDocument.user' db.add_column('document_upload_rawdocument', 'user', @@ -90,4 +94,4 @@ class Migration(SchemaMigration): } } - complete_apps = ['document_upload'] \ No newline at end of file + complete_apps = ['document_upload'] diff --git a/karmaworld/apps/users/migrations/0002_auto__del_karmauser__add_userprofile.py b/karmaworld/apps/users/migrations/0002_auto__del_karmauser__add_userprofile.py index 45c8674..4f24374 100644 --- a/karmaworld/apps/users/migrations/0002_auto__del_karmauser__add_userprofile.py +++ b/karmaworld/apps/users/migrations/0002_auto__del_karmauser__add_userprofile.py @@ -6,6 +6,11 @@ from django.db import models class Migration(SchemaMigration): + depends_on = ( + ('notes', '0012_auto__add_unique_note_upstream_link__add_unique_note_gdrive_url__add_u'), + ('document_upload', '0002_auto__add_field_rawdocument_user'), + ) + def forwards(self, orm): # This should not be done here, but there is already a migration in # Notes which relies on this migration. So this must be done here.