summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-10-18 15:58:44 +0200
committerDan McGee <dan@archlinux.org>2012-10-18 15:58:44 +0200
commitabd4b6c6d8541955f327b4adc50cf2031ebe6781 (patch)
treeaa5d1c14de27142d049bd95fcd9ce0077e181273
parent3422efd3073df0b32833aee26a6aee7018010f4e (diff)
downloadarchweb-abd4b6c6d8541955f327b4adc50cf2031ebe6781.tar.gz
archweb-abd4b6c6d8541955f327b4adc50cf2031ebe6781.tar.xz
Clean up create index migration
Signed-off-by: Dan McGee <dan@archlinux.org>
-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 = {