summaryrefslogtreecommitdiff
path: root/main/migrations/0013_mark_repos_testing.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-01-15 21:29:30 -0600
committerDan McGee <dan@archlinux.org>2013-01-15 21:29:30 -0600
commitf106379b5382b2b82aa56466c8d3acaae58327a9 (patch)
tree275a9e2edfbbca46009a511ffbc032685dea6dad /main/migrations/0013_mark_repos_testing.py
parent3a6398f42d04ea6a677bf7b6d5115175e9011432 (diff)
Clean up and make several migrations modernrelease_2013-01-15
This moves most migrations to the v2 format that have been presenting some issues. One missing depends_on relationship has been added, and we allow an index to not be dropped if it does not exist due to the shittyness in sqlite3 actually keeping indexes across DDL on that table. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/migrations/0013_mark_repos_testing.py')
-rw-r--r--main/migrations/0013_mark_repos_testing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/migrations/0013_mark_repos_testing.py b/main/migrations/0013_mark_repos_testing.py
index 617a3ab8..e50010b2 100644
--- a/main/migrations/0013_mark_repos_testing.py
+++ b/main/migrations/0013_mark_repos_testing.py
@@ -1,9 +1,9 @@
+# -*- coding: utf-8 -*-
from south.db import db
+from south.v2 import DataMigration
from django.db import models
-from main.models import *
-class Migration:
- no_dry_run = True
+class Migration(DataMigration):
def forwards(self, orm):
orm.Repo.objects.filter(name__endswith="Testing").update(testing=True)