By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| version() |
|---|
| 10.7.5-MariaDB-1:10.7.5+maria~deb11 |
Can't create table `fiddle`.`ice_product_manuals` (errno: 150 "Foreign key constraint is incorrectly formed")
Records: 0 Duplicates: 0 Warnings: 0
Records: 0 Duplicates: 0 Warnings: 0
| Table | Create Table |
|---|---|
| ice_product_manuals | CREATE TABLE `ice_product_manuals` ( `product_id` bigint(20) NOT NULL, `descr` varchar(255) DEFAULT NULL, `url` varchar(800) DEFAULT NULL, `id` bigint(20) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), UNIQUE KEY `unique_manual` (`product_id`,`url`) USING HASH, KEY `ice_product_manuals__product_id_idx` (`product_id`), CONSTRAINT `fk_icecat_manuals_product_id` FOREIGN KEY (`product_id`) REFERENCES `ice_product` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 |