ALTER TABLE `mm_UserList` DROP FOREIGN KEY `mm_UserList_ibfk_2`; ALTER TABLE `mm_UserList` ADD CONSTRAINT `mm_UserList_ibfk_2` FOREIGN KEY (`listId`) REFERENCES `mm_List`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;