File tree 1 file changed +1
-2
lines changed
server/src/main/resources/db/migration
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 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 ` ) ;
2
2
DELETE FROM ` test_device_suites` WHERE test_device_id > 314 AND test_device_id < 350 ;
3
3
4
4
ALTER TABLE ` test_devices` MODIFY column ` app_upload_id` BIGINT (20 );
5
5
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 ;
7
6
UPDATE ` test_devices` SET app_upload_id = NULL WHERE app_path_type= ' USE_PATH' ;
8
7
ALTER TABLE ` test_devices` ADD CONSTRAINT ` fk_app_upload_id_in_test_devices_to_uploads` FOREIGN
9
8
KEY (` app_upload_id` ) REFERENCES ` uploads` (` id` ) ON DELETE RESTRICT ON UPDATE NO ACTION;
You can’t perform that action at this time.
0 commit comments