summaryrefslogtreecommitdiff
path: root/tko/migrations
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-04-17 20:11:38 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-04-17 20:11:38 +0000
commit8942a1f2b396889a6eb7f00319807c8001554cde (patch)
tree62dd59c15d8325dcc4505dd5acc766c5ad920843 /tko/migrations
parent232499bfecc525eb73ee66bd4b88b11e0a63750e (diff)
Change tests to have a default for the invalid field
Signed-off-by: Scott Zawalski <scottz@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@3000 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/migrations')
-rw-r--r--tko/migrations/023_update_tests_invalid.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tko/migrations/023_update_tests_invalid.py b/tko/migrations/023_update_tests_invalid.py
new file mode 100644
index 00000000..386a43db
--- /dev/null
+++ b/tko/migrations/023_update_tests_invalid.py
@@ -0,0 +1,6 @@
+def migrate_up(manager):
+ manager.execute("ALTER TABLE tests MODIFY invalid TINYINT(1) DEFAULT 0")
+
+
+def migrate_down(manager):
+ manager.execute("ALTER TABLE tests MODIFY invalid TINYINT(1) DEFAULT NULL")