layout | group | subgroup | title | menu_title | menu_node | menu_order | version | github_link | redirect_from |
---|---|---|---|---|---|---|---|---|---|
default |
migration |
C_DMTool |
Configure migration |
Configure migration |
4 |
2.0 |
migration/migration-tool-configure.md |
/guides/v1.0/migration/migration-tool-configure.html |
After you install the data migration tool, the following directory contains mapping and configuration files:
-
Magento CE:
<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/ce-to-ce
: Configuration and scripts for migrating from Magento 1 CE to Magento 2 CE
-
Magento EE:
<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/ce-to-ee
: Configuration and scripts for migrating from Magento 1 CE to Magento 2 EE<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/ee-to-ee
: Configuration and scripts for migrating from Magento 1 EE to Magento 2 EE
The preceding directories contain subdirectories for each supported version.
Before you migrate any data, you must create a config.xml
configuration file from the provided sample.
To create a configuration file:
-
Log in to your Magento server as, or switch to, the Magento file system owner.
-
Change to the following directory:
<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/<migration edition>/<ce or version>
-
Enter the following command to create a
config.xml
from the provided sample:cp config.xml.dist config.xml
-
Open
config.xml
in a text editor. -
Specify the following at minimum:
{% highlight xml %}
The <crypt_key>
tag is mandatory to fill. It can be found in local.xml
file which is located in the directory of Magento 1 instance at app/etc/local.xml
in <key>
tag
Optional parameters:
-
Database user password:
password=<password>
-
Table prefix:
<source_prefix>
,<dest_prefix>
For example, if your database owner's user name is root
with password pass
and you use the prefix magento1
in your Magento 1 database, use the following in config.xml
:
{% highlight xml %}
When finished, save your changes to config.xml
and exit the text editor.
The Data Migration Tool uses mapping files to enable you to perform custom database mapping between your Magento 1 and Magento 2 databases, including:
-
Changing table names
-
Changing field names
-
Ignoring tables or fields
-
Adapt transferring data of a field to Magento 2 format
Mapping files for supported Magento versions are located in subdirectories of <your Magento 2 install dir>/vendor/magento/data-migration-tool/etc
To use the mapping files:
-
Rename or copy them to remove the
.dist
extension. -
Edit them using the schema located in
<your Magento 2 install dir>/vendor/magento/data-migration-tool/etc
. -
Then change config.xml in
<options>
node with the new name of the file.
The <your Magento 2 install dir>/vendor/magento/data-migration-tool/etc
and <your Magento 2 install dir>/vendor/magento/data-migration-tool/etc/<ce version>
directories contain the following configuration files:
Even though you will be working with map.xml.dist
file most of the time, the following table discusses each mapping and other files.
Mapping file name | Description |
---|---|
class-map.xml.dist | Dictionary of class mappings between Magento 1 and Magento 2 |
config.xml.dist | Main configuration file that specifies the Magento 1 and Magento 2 database configurations, step configuration, and links to mapping files |
EE only. customer-attr-document-groups.xml.dist | List of tables used in the custom customer attributes step. |
EE only. customer-attr-map.xml.dist | Map file that is used in Custom Customer Attributes Step. |
deltalog.xml.dist | Contains the list of tables required for database routines setup. |
eav-attribute-groups.xml.dist | Contains list of attributes that are used in Eav Step. |
eav-document-groups.xml.dist | Contains list of tables that are used in Eav Step. |
log-document-groups.xml.dist | Contains list of tables that are used in Log Step. |
map-eav.xml.dist | Map file that is used in EAV Step. |
map-log.xml.dist | Log mapping file. |
EE only. map-sales.xml.dist | Map file that is used in SalesOrder step. |
map.xml.dist | Mapping file required for the map step. |
settings.xml.dist | Setting migration configuration file that specifies rules required for migrating the core_config_data table. |
customer-attribute-groups.xml | Contains list of attributes that are used in Customer Attributes Step. |
customer-document-groups.xml | Contains list of tables that are used in Customer Attributes Step. |
map-customer.xml | Map file that is used in Customer Attributes Step. |
order-grids-document-groups.xml | Contains list of tables that are used in OrderGrids Step. |
You can refer to Data Migration Tool Technical Specification for more details.