13 lines
454 B
MySQL
13 lines
454 B
MySQL
|
|
-- Allow the same test case or waypoint to appear more than once in a task.
|
||
|
|
-- The task position, rather than the bound resource ID, identifies a row.
|
||
|
|
|
||
|
|
ALTER TABLE `aima_task_test_case`
|
||
|
|
DROP PRIMARY KEY,
|
||
|
|
MODIFY COLUMN `sort_order` int NOT NULL,
|
||
|
|
ADD PRIMARY KEY (`task_id`, `sort_order`);
|
||
|
|
|
||
|
|
ALTER TABLE `inspection_task_waypoint`
|
||
|
|
DROP PRIMARY KEY,
|
||
|
|
MODIFY COLUMN `sort_order` int NOT NULL,
|
||
|
|
ADD PRIMARY KEY (`task_id`, `sort_order`);
|