Skip to content

Commit d35c5b8

Browse files
Merge pull request #22 from testsigmahq/dev
TOS-114 migrations corrected
2 parents 2a2a353 + a3a4f1d commit d35c5b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
DELETE FROM `test_devices` WHERE `app_upload_id` = 15 or `app_upload_id` = 16;
1+
UPDATE `test_devices` SET `app_upload_id` = NULL WHERE `app_upload_id` not in (SELECT id from `uploads`);
22
DELETE FROM `test_device_suites` WHERE test_device_id >314 AND test_device_id <350;
33

44
ALTER TABLE `test_devices` MODIFY column `app_upload_id` BIGINT(20);
55
ALTER TABLE `test_devices` ADD KEY `index_test_devices_on_app_upload_id` (`app_upload_id`);
6-
UPDATE `test_devices` SET app_upload_id = 15 WHERE app_upload_id =17 OR app_upload_id =18 OR app_upload_id =12;
76
UPDATE `test_devices` SET app_upload_id = NULL WHERE app_path_type='USE_PATH';
87
ALTER TABLE `test_devices` ADD CONSTRAINT `fk_app_upload_id_in_test_devices_to_uploads` FOREIGN
98
KEY (`app_upload_id`) REFERENCES `uploads` (`id`) ON DELETE RESTRICT ON UPDATE NO ACTION;

0 commit comments

Comments
 (0)