1UP_SQL = """ 2ALTER TABLE tko_tests 3DROP FOREIGN KEY `invalidates_test_idx_fk`, 4ADD CONSTRAINT `invalidates_test_idx_fk_1` 5FOREIGN KEY (`invalidates_test_idx`) 6REFERENCES `tko_tests`(`test_idx`) ON DELETE CASCADE; 7""" 8 9DOWN_SQL = """ 10ALTER TABLE tko_tests 11DROP FOREIGN KEY `invalidates_test_idx_fk_1`, 12ADD CONSTRAINT `invalidates_test_idx_fk` 13FOREIGN KEY (`invalidates_test_idx`) 14REFERENCES `tko_tests`(`test_idx`) ON DELETE NO ACTION; 15""" 16