Skip to content

Commit

Permalink
URGH
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Nov 1, 2014
1 parent 276ddec commit 59e9d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playhouse/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,13 @@ def _get_indexes(self, table):
[table, 'index'])
index_to_sql = dict(cursor.fetchall())
indexed_columns = {}
for index_name in index_to_sql:
for index_name in sorted(index_to_sql):
cursor = self.database.execute_sql(
'PRAGMA index_info("%s")' % index_name)
indexed_columns[index_name] = [row[2] for row in cursor.fetchall()]

return [_IndexMetadata(key, index_to_sql[key], indexed_columns[key])
for key in sorted(index_to_sql.keys())]
for key in sorted(index_to_sql)]

@operation
def _update_column(self, table, column_to_update, fn):
Expand Down

0 comments on commit 59e9d36

Please sign in to comment.