From 11fab47b43b436a35f17b12691dbcca9d1f4c811 Mon Sep 17 00:00:00 2001 From: Bryan Date: Fri, 20 Dec 2013 18:26:00 -0500 Subject: [PATCH] first attempt at resolving migration dependencies --- karmaworld/apps/document_upload/migrations/0001_initial.py | 6 +++++- karmaworld/apps/notes/migrations/0001_initial.py | 6 +++++- .../apps/notes/migrations/0002_auto__add_field_note_user.py | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) 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'] -- 2.25.1