summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/migrations/0004_add_pkgname_index.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/migrations/0004_add_pkgname_index.py b/main/migrations/0004_add_pkgname_index.py
index 0aae452..6e23ada 100644
--- a/main/migrations/0004_add_pkgname_index.py
+++ b/main/migrations/0004_add_pkgname_index.py
@@ -7,12 +7,12 @@ class Migration(SchemaMigration):
def forwards(self, orm):
db.alter_column('packages', 'maintainer_id', orm['main.package:maintainer'])
- db.alter_column('packages', 'pkgname', orm['main.package:pkgname'])
+ db.create_index('packages', ['pkgname'])
def backwards(self, orm):
db.alter_column('packages', 'maintainer_id', orm['main.package:maintainer'])
- db.alter_column('packages', 'pkgname', orm['main.package:pkgname'])
+ db.delete_index('packages', ['pkgname'])
models = {