1# the "invalidated" test label is used implicitly by TKO for (you guessed it) 2# invalidating test results. if it doesn't exist in the DB, errors will show 3# up. 4 5def migrate_up(manager): 6 rows = manager.execute( 7 'SELECT * FROM test_labels WHERE name = "invalidated"') 8 if not rows: 9 manager.execute('INSERT INTO test_labels SET name = "invalidated", ' 10 'description = "Used by TKO to invalidate tests"') 11 12 13def migrate_down(manager): 14 # no need to remove the label 15 pass 16