I was looking for instructions INSERT... ON DUPLICATE KEYdue to a constraint error, but I irreversibly edited this line and I no longer get the error. I'm sure I edited either request_path, or target_path. Some of the values ββthat have already been specified for a specific area:
store_id | id_path | is_system
6 | category/494 | 1
The request was
INSERT INTO `core_url_rewrite` (`store_id`,`category_id`,`product_id`,`id_path`,`request_path`,`target_path`,`is_system`)
VALUES (6, 494, NULL, 'category/494', 'lessons/teacher-s-planning-calendar/n-a', 'catalog/category/view/id/494', 1)
ON DUPLICATE KEY UPDATE
`store_id` = VALUES(`store_id`),
`category_id` = VALUES(`category_id`),
`product_id` = VALUES(`product_id`),
`id_path` = VALUES(`id_path`),
`request_path` = VALUES(`request_path`),
`target_path` = VALUES(`target_path`),
`is_system` = VALUES(`is_system`)
The error was
Integrity constraint violation: 1062 Duplicate entry 'category/494-1-6'
for key 'UNQ_CORE_URL_REWRITE_ID_PATH_IS_SYSTEM_STORE_ID'
There are two unique keys in this table.
UNIQUE KEY `UNQ_CORE_URL_REWRITE_REQUEST_PATH_STORE_ID` (`request_path`,`store_id`),
UNIQUE KEY `UNQ_CORE_URL_REWRITE_ID_PATH_IS_SYSTEM_STORE_ID` (`id_path`,`is_system`,`store_id`)
I no longer get this restriction error after accidentally changing some values ββin a string. What will cause my request to cause this restriction error?