From 7def999b0aa3511671049826741ee3ebb6ce9573 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 29 Sep 2010 15:16:39 -0500 Subject: Fix migration dependencies exposed after moving models When we moved some models from one app to another, we didn't do anything to ensure the tables were created at all initially. Enforce this by adding the minimal required dependencies- those migrations in the 'main' model that last touched the involved models moving between apps. Noticed-by: Angel Velasquez Signed-off-by: Dan McGee --- mirrors/migrations/0002_rename_model_tables.py | 4 ++++ news/migrations/0002_move_news_in.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mirrors/migrations/0002_rename_model_tables.py b/mirrors/migrations/0002_rename_model_tables.py index 2041cd69..d510bada 100644 --- a/mirrors/migrations/0002_rename_model_tables.py +++ b/mirrors/migrations/0002_rename_model_tables.py @@ -6,6 +6,10 @@ from django.db import models class Migration(SchemaMigration): + depends_on = ( + ('main', '0014_mirror_notes_rsync_optional'), + ) + def forwards(self, orm): db.rename_table('main_mirror', 'mirrors_mirror') db.rename_table('main_mirrorurl', 'mirrors_mirrorurl') diff --git a/news/migrations/0002_move_news_in.py b/news/migrations/0002_move_news_in.py index 617e4b66..d6dafad4 100644 --- a/news/migrations/0002_move_news_in.py +++ b/news/migrations/0002_move_news_in.py @@ -6,6 +6,10 @@ from django.db import models class Migration(SchemaMigration): + depends_on = ( + ('main', '0001_initial'), + ) + def forwards(self, orm): pass -- cgit v1.2.3-55-g3dc8