ALTER TABLE products_images ENGINE = InnoDB; ALTER TABLE products_content ENGINE = InnoDB; ALTER TABLE products_to_categories ENGINE = InnoDB; ALTER TABLE products_distributors ENGINE = InnoDB; ALTER TABLE products_images ADD CONSTRAINT fk_products_images_products FOREIGN KEY (products_id) REFERENCES products (products_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE products_content ADD CONSTRAINT fk_products_content_products FOREIGN KEY (products_id) REFERENCES products (products_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE products_to_categories ADD CONSTRAINT fk_products_to_categories_products FOREIGN KEY (products_id) REFERENCES products (products_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE products_distributors ADD CONSTRAINT fk_products_distributors_products FOREIGN KEY (products_id) REFERENCES products (products_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE product_un_classification ADD CONSTRAINT fk_product_un_classification_products FOREIGN KEY (products_id) REFERENCES products (products_id) ON DELETE CASCADE ON UPDATE CASCADE;