summaryrefslogtreecommitdiff
path: root/frontend/migrations/004_add_indexes.py
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/migrations/004_add_indexes.py')
-rw-r--r--frontend/migrations/004_add_indexes.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/migrations/004_add_indexes.py b/frontend/migrations/004_add_indexes.py
index 7219f236..40b496f7 100644
--- a/frontend/migrations/004_add_indexes.py
+++ b/frontend/migrations/004_add_indexes.py
@@ -8,16 +8,16 @@ INDEXES = (
)
def get_index_name(table, field):
- return table + '_' + field
+ return table + '_' + field
def migrate_up(manager):
- for table, field in INDEXES:
- manager.execute('CREATE INDEX %s ON %s (%s)' %
- (get_index_name(table, field), table, field))
+ for table, field in INDEXES:
+ manager.execute('CREATE INDEX %s ON %s (%s)' %
+ (get_index_name(table, field), table, field))
def migrate_down(manager):
- for table, field in INDEXES:
- manager.execute('DROP INDEX %s ON %s' %
- (get_index_name(table, field), table))
+ for table, field in INDEXES:
+ manager.execute('DROP INDEX %s ON %s' %
+ (get_index_name(table, field), table))