summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-29 22:16:39 +0200
committerDan McGee <dan@archlinux.org>2010-09-29 22:16:39 +0200
commit7def999b0aa3511671049826741ee3ebb6ce9573 (patch)
tree66cb8c4e7f43ca049f6587840684b8d5e4b76ef2
parentbc5a5781bf43f81ab266bf258d4ab8bf16c9b2d0 (diff)
downloadarchweb-7def999b0aa3511671049826741ee3ebb6ce9573.tar.gz
archweb-7def999b0aa3511671049826741ee3ebb6ce9573.tar.xz
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 <angvp@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/migrations/0002_rename_model_tables.py4
-rw-r--r--news/migrations/0002_move_news_in.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/mirrors/migrations/0002_rename_model_tables.py b/mirrors/migrations/0002_rename_model_tables.py
index 2041cd6..d510bad 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 617e4b6..d6dafad 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