• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1UP_SQL = """
2ALTER TABLE `planner_test_runs` ADD CONSTRAINT `test_runs_unique` UNIQUE KEY (`plan_id`, `test_job_id`, `tko_test_id`, `host_id`);
3
4ALTER TABLE `planner_tests` ADD COLUMN `is_server` tinyint(1) DEFAULT 1;
5
6ALTER TABLE `planner_hosts` ADD COLUMN `added_by_label` tinyint(1) DEFAULT 0;
7"""
8
9DOWN_SQL = """
10ALTER TABLE `planner_hosts` DROP COLUMN `added_by_label`;
11ALTER TABLE `planner_tests` DROP COLUMN `is_server`;
12ALTER TABLE `planner_test_runs` DROP KEY `test_runs_unique`;
13"""
14