|
Ive got the same problem, although I dont have multiple stores, just the one.
How did you go about removing your duplicates Brady?
I ran into the same issue (SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘xxxxxxxx’ for key 2)
I modified Brady’s queries a bit to work regardless of store (or at least I hope so ).
SELECT count(*), increment_id, order_increment_id
FROM sales_flat_invoice_grid
GROUP BY increment_id, order_increment_id
HAVING count(*) > 1
SELECT count(*), increment_id
FROM sales_flat_order
GROUP BY increment_id
HAVING count(*) > 1
SELECT count(*), increment_id
FROM sales_flat_order_grid
GROUP BY increment_id
HAVING count(*) > 1
SELECT count(*), increment_id, order_increment_id
FROM sales_flat_shipment_grid
GROUP BY increment_id, order_increment_id
HAVING count(*) > 1
SELECT count(*), increment_id
FROM sales_flat_creditmemo
GROUP BY increment_id
HAVING count(*) > 1
SELECT count(*), increment_id, order_increment_id
FROM sales_flat_creditmemo_grid
GROUP BY increment_id, order_increment_id
HAVING count(*) > 1
SELECT count(*), increment_id
FROM sales_flat_invoice
GROUP BY increment_id
HAVING count(*) > 1
SELECT count(*), increment_id
FROM sales_flat_shipment
GROUP BY increment_id
HAVING count(*) > 1
I didn’t try this but this may work as well:
http://phpmysqltalk.com/1099-magento-1-6-upgrade-errors-with-solutions.html
In the app/etc/config.xml, change this
- SET NAMES utf8
To this
- SET NAMES utf8; SET FOREIGN_KEY_CHECKS=0; SET UNIQUE_CHECKS=0;
I would assume that will squelch errors during the upgrade process but not sure what other issues that can cause down the line
Can anyone confirm that if you do error out due to a dupe during the upgrade process, if you can “pick back up where you left off”? Before fixing my dupe, I tried to hit the homepage and it immediately tried to update again and threw the dupe error. After fixing the dupe and reloading the home page it looks to have continued on with the upgrade process. Not sure if that is the proper way or not (would hate to restart the whole process).
|