From 8942a1f2b396889a6eb7f00319807c8001554cde Mon Sep 17 00:00:00 2001 From: mbligh Date: Fri, 17 Apr 2009 20:11:38 +0000 Subject: Change tests to have a default for the invalid field Signed-off-by: Scott Zawalski git-svn-id: svn://test.kernel.org/autotest/trunk@3000 592f7852-d20e-0410-864c-8624ca9c26a4 --- tko/migrations/023_update_tests_invalid.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tko/migrations/023_update_tests_invalid.py (limited to 'tko/migrations') 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") -- cgit v1.2.3