diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-03-09 21:18:54 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-03-09 21:18:54 +0000 |
commit | 89fa53ba5993161cbd78acbd15a428edc8c95b57 (patch) | |
tree | 8da254d15a1898dddc4dc2dfcd5d21e5ed8368c6 /tko/migrations | |
parent | 7d0525cabd5d54d919bf2d0a432c617d00908ddd (diff) |
Added frontend/migrations/027_fix_innodb.py and
tko/migrations/021_fix_innodb.py to perform ALTER TABLE ...
ENGINE=InnoDB on tables missing it.
Signed-off-by: Mihai Rusu <dizzy@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@2858 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/migrations')
-rw-r--r-- | tko/migrations/021_fix_innodb.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tko/migrations/021_fix_innodb.py b/tko/migrations/021_fix_innodb.py new file mode 100644 index 00000000..36565678 --- /dev/null +++ b/tko/migrations/021_fix_innodb.py @@ -0,0 +1,14 @@ +UP_SQL = """ +ALTER TABLE query_history ENGINE=InnoDB; +ALTER TABLE test_labels ENGINE=InnoDB; +ALTER TABLE test_labels_tests ENGINE=InnoDB; +ALTER TABLE saved_queries ENGINE=InnoDB; +ALTER TABLE embedded_graphing_queries ENGINE=InnoDB; +""" + +def migrate_up(manager): + manager.execute_script(UP_SQL) + + +def migrate_down(manager): + pass |