From: Bryan Date: Fri, 20 Dec 2013 23:26:00 +0000 (-0500) Subject: first attempt at resolving migration dependencies X-Git-Tag: release-20150131~376^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=11fab47b43b436a35f17b12691dbcca9d1f4c811;p=oweals%2Fkarmaworld.git first attempt at resolving migration dependencies --- diff --git a/karmaworld/apps/document_upload/migrations/0001_initial.py b/karmaworld/apps/document_upload/migrations/0001_initial.py index 2751166..5d556a4 100644 --- a/karmaworld/apps/document_upload/migrations/0001_initial.py +++ b/karmaworld/apps/document_upload/migrations/0001_initial.py @@ -7,6 +7,10 @@ from django.db import models class Migration(SchemaMigration): + depends_on = ( + ('courses', '0001_initial'), + ) + def forwards(self, orm): # Adding model 'RawDocument' db.create_table('document_upload_rawdocument', ( @@ -94,4 +98,4 @@ class Migration(SchemaMigration): } } - complete_apps = ['document_upload'] \ No newline at end of file + complete_apps = ['document_upload'] diff --git a/karmaworld/apps/notes/migrations/0001_initial.py b/karmaworld/apps/notes/migrations/0001_initial.py index acff35c..38f3406 100644 --- a/karmaworld/apps/notes/migrations/0001_initial.py +++ b/karmaworld/apps/notes/migrations/0001_initial.py @@ -7,6 +7,10 @@ from django.db import models class Migration(SchemaMigration): + depends_on = ( + ('courses', '0001_initial'), + ) + def forwards(self, orm): # Adding model 'Note' db.create_table('notes_note', ( @@ -133,4 +137,4 @@ class Migration(SchemaMigration): } } - complete_apps = ['notes'] \ No newline at end of file + complete_apps = ['notes'] diff --git a/karmaworld/apps/notes/migrations/0002_auto__add_field_note_user.py b/karmaworld/apps/notes/migrations/0002_auto__add_field_note_user.py index 60b6287..6de1ac2 100644 --- a/karmaworld/apps/notes/migrations/0002_auto__add_field_note_user.py +++ b/karmaworld/apps/notes/migrations/0002_auto__add_field_note_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 'Note.user' db.add_column('notes_note', 'user', @@ -107,4 +111,4 @@ class Migration(SchemaMigration): } } - complete_apps = ['notes'] \ No newline at end of file + complete_apps = ['notes']