summaryrefslogtreecommitdiff
path: root/tko/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'tko/migrations')
-rwxr-xr-xtko/migrations/001_initial_db.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tko/migrations/001_initial_db.py b/tko/migrations/001_initial_db.py
index 8b964753..c67f3c2f 100755
--- a/tko/migrations/001_initial_db.py
+++ b/tko/migrations/001_initial_db.py
@@ -4,8 +4,8 @@ required_tables = ('machines', 'jobs', 'patches', 'tests', 'test_attributes',
'iteration_result')
def migrate_up(manager):
- manager.execute("SHOW TABLES")
- tables = [row[0] for row in manager.cursor.fetchall()]
+ rows = manager.execute("SHOW TABLES")
+ tables = [row[0] for row in rows]
db_initialized = True
for table in required_tables:
if table not in tables: