-
Notifications
You must be signed in to change notification settings - Fork 197
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
Custom module transferring data #32
Comments
@craigcarnell You should describe you custom data structure in config file. |
@ilol I appreciate that, but how? :) |
@ilol The documentation tells you how to ignore something, but not to simply copy the data across as the 2 modules exist in M1 and M2 |
How about just manually copying the tables using sql statements yourself? Then telling the migrator to ignore the tables in the source database.... |
@quangdog That kind of defeats the purpose of the data migration tool if it doesn't have that ability. Also you would also need to do this when doing an update. |
I believe that the migrator's approach is that if a table exists in M1 and M2, and the structure is the same, then the records from M1 will just copy straight to M2 without needing to specify any mapping. So, rather than copy the entire table + data from M1 to M2 manually, just create the structure for the table in M2, and don't specifically map the table at all in the migrator. The data should move with the migration, and should be kept up to date with incrementals. But what the heck do I know - I'm still trying to get my M1 to migrate to M2 without losing random bits of customer data along the way. ;-( |
Absolutely right |
@craigcarnell if you got an answer, please close the issue. Thanks |
How do I get the tool to simply copy the data from custom modules (such as tables) to the new M2 database?
If I recreate the module that is fine, but then I get an error such as:
How do I go about transferring this? I have installed the M2 version of the module
The text was updated successfully, but these errors were encountered: