Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean database with 1.9.1 #12

Closed
seabird opened this issue Dec 4, 2015 · 7 comments
Closed

Clean database with 1.9.1 #12

seabird opened this issue Dec 4, 2015 · 7 comments

Comments

@seabird
Copy link

seabird commented Dec 4, 2015

Hi everyone,

created a clean install via composer and never even logged in. I dumped the database and am trying to get my data-migration tool to sync my settings and information.

unfortunatly I get this error:
[PDOException]

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'association-2' for key 'SEARCH_QUERY_QUERY_TEXT_STORE_ID'

Any clues how to solve this?

@chrissm79
Copy link

I had to search and remove duplicates in my catalogsearch_query table (Magento 1.x). I found them by running the following:

SELECT query_text, COUNT(*) c FROM catalogsearch_query GROUP BY query_text HAVING c > 1;

@ilol
Copy link

ilol commented Jan 6, 2016

Thanks @chrissm79
@seabird would you close the ticket?

@victor-v-rad
Copy link
Collaborator

The Migration Tool should not transfer these duplicates. According internal issue (MAGETWO-47876) was created to solve it

@dwdonline
Copy link

Same issue migrating 1.9.11 > 2.0.0.

Thanks @chrissm79 - that did it for me.

@seabird
Copy link
Author

seabird commented Jan 18, 2016

On the double ones, what is the impact of which one you delete? Is it possible to do this automated?
"DELETE FROM catalogsearch_query WHERE c > 1"?

victor-v-rad pushed a commit to victor-v-rad/data-migration-tool that referenced this issue Feb 11, 2016
victor-v-rad pushed a commit to victor-v-rad/data-migration-tool that referenced this issue Feb 11, 2016
@ilol
Copy link

ilol commented Apr 28, 2016

@seabird can close?

@seabird
Copy link
Author

seabird commented Apr 28, 2016

Sorry, due to other problemo did not have time to look into this further. Sure thing, close it.

@seabird seabird closed this as completed Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants