fixing migration dependencies for smoother migration.
authorBryan <btbonval@gmail.com>
Sun, 12 Jan 2014 08:36:54 +0000 (08:36 +0000)
committerBryan <btbonval@gmail.com>
Sun, 12 Jan 2014 08:36:54 +0000 (08:36 +0000)
karmaworld/apps/document_upload/migrations/0002_auto__add_field_rawdocument_user.py
karmaworld/apps/users/migrations/0002_auto__del_karmauser__add_userprofile.py

index 6cf2bbd3540c89f5287aafd583e74516bba8f208..59cb5a093981a728d76ef41e7d1fa4ce66a7526c 100644 (file)
@@ -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']
index 45c867403bafd4146ad014c42a60263d58f385ad..4f24374a2e8c989c03508064e5d2796d2457a7cc 100644 (file)
@@ -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.