Make sure the 'invalidated' test label exists
Signed-off-by: James Ren <[email protected]>
--- /dev/null 2009-12-17 12:29:38.000000000 -0800
+++ autotest/frontend/migrations/055_ensure_invalidated_test_label_exists.py
2010-04-02 13:00:49.000000000 -0700
@@ -0,0 +1,13 @@
+UP_SQL = """
+ALTER TABLE tko_test_labels
+ADD CONSTRAINT tko_test_labels_unique
+UNIQUE INDEX (name);
+
+INSERT IGNORE INTO tko_test_labels (name, description)
+VALUES ('invalidated', '');
+"""
+
+DOWN_SQL = """
+ALTER TABLE tko_test_labels
+DROP INDEX tko_test_labels_unique;
+"""
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest