SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE `PREFIX_catalog_category_entity`;
TRUNCATE TABLE `PREFIX_catalog_category_entity_datetime`;
TRUNCATE TABLE `PREFIX_catalog_category_entity_decimal`;
TRUNCATE TABLE `PREFIX_catalog_category_entity_int`;
TRUNCATE TABLE `PREFIX_catalog_category_entity_text`;
TRUNCATE TABLE `PREFIX_catalog_category_entity_varchar`;
TRUNCATE TABLE `PREFIX_catalog_category_product`;
TRUNCATE TABLE `PREFIX_catalog_category_product_index`;
INSERT INTO `PREFIX_catalog_category_entity` (`entity_id`, `attribute_set_id`, `parent_id`, `created_at`, `updated_at`, `path`, `position`, `level`, `children_count`) VALUES
(1, 0, 0, '2016-05-09 08:03:52', '2016-05-09 08:03:52', '1', 0, 0, 1),
(2, 3, 1, '2016-05-09 08:03:52', '2016-05-09 08:03:52', '1/2', 1, 1, 0); |