ALTER TABLE `tb_prod_cons_relation` DROP COLUMN `id`, DROP PRIMARY KEY, ADD PRIMARY KEY (`shop_id`, `product_id`, `cons_info_id`) USING BTREE;