summaryrefslogtreecommitdiff
path: root/tko/migrations
diff options
context:
space:
mode:
authorjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-07-11 23:14:01 +0000
committerjadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4>2008-07-11 23:14:01 +0000
commitd0d1b06fae7144bb77f522b15d9a14a3b5e06254 (patch)
treef0b526c9619cb05030a616802237bc712f835e5f /tko/migrations
parent9160b49982743695c27a0a23bf3367e4c8d96449 (diff)
Change the name of the magic JOB entry in the status log parsing to
CLIENT_JOB, since that's what it actually corresponds to. Risk: Low Visibility: Changes what will show up in the tko results (again). Signed-off-by: John Admanski <jadmanski@google.com> git-svn-id: svn://test.kernel.org/autotest/trunk@1826 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/migrations')
-rw-r--r--tko/migrations/011_rename_JOB_to_CLIENT_JOB.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tko/migrations/011_rename_JOB_to_CLIENT_JOB.py b/tko/migrations/011_rename_JOB_to_CLIENT_JOB.py
new file mode 100644
index 00000000..a628d10d
--- /dev/null
+++ b/tko/migrations/011_rename_JOB_to_CLIENT_JOB.py
@@ -0,0 +1,11 @@
+JOB_TO_CLIENT_JOB = """UPDATE tests SET test='CLIENT_JOB' WHERE test='JOB';"""
+
+CLIENT_JOB_TO_JOB = """UPDATE tests SET test='JOB' WHERE test='CLIENT_JOB';"""
+
+
+def migrate_up(manager):
+ manager.execute_script(JOB_TO_CLIENT_JOB)
+
+
+def migrate_down(manager):
+ manager.execute_script(CLIENT_JOB_TO_JOB)