By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
version() |
---|
5.7.39 |
Table | Create Table |
---|---|
resource | CREATE TABLE `resource` ( `ID` int(11) DEFAULT NULL, `address_id` int(11) DEFAULT NULL, KEY `fk_res_to_addr` (`address_id`), CONSTRAINT `resource_ibfk_1` FOREIGN KEY (`address_id`) REFERENCES `address` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |
Can't DROP 'fk_res_to_addr'; check that column/key exists
Cannot drop index 'fk_res_to_addr': needed in a foreign key constraint
Table | Create Table |
---|---|
resource | CREATE TABLE `resource` ( `ID` int(11) DEFAULT NULL, `address_id` int(11) DEFAULT NULL, KEY `fk_res_to_addr` (`address_id`), CONSTRAINT `resource_ibfk_1` FOREIGN KEY (`address_id`) REFERENCES `address` (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 |