Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.6.0.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.6.0.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.6.1.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.6.1.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.6.2.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.6.2.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.7.0.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.7.0.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.7.0.1/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.7.0.1/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.7.0.2/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.7.0.2/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.8.0.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.8.0.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.8.1.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.8.1.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.0.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.0.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.0.1/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.0.1/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.1.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.1.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.1.1/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.1.1/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.2.0/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.2.0/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.2.1/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.2.1/map.xml.dist</map_file>
Expand Down
4 changes: 2 additions & 2 deletions etc/ce-to-ce/1.9.2.2/config.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@
</step>
</steps>
<source>
<database host="localhost" name="magento1" user="root"/>
<database host="localhost" name="magento1" user="root" initStatements="SET NAMES utf8;" />
</source>
<destination>
<database host="localhost" name="magento2" user="root"/>
<database host="localhost" name="magento2" user="root" initStatements="SET NAMES utf8;" />
</destination>
<options>
<map_file>etc/ce-to-ce/1.9.2.2/map.xml.dist</map_file>
Expand Down
1 change: 1 addition & 0 deletions etc/config.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<xs:attribute name="host" type="xs:string" use="required"/>
<xs:attribute name="user" type="xs:string" use="required"/>
<xs:attribute name="password" type="xs:string" use="optional"/>
<xs:attribute name="initStatements" type="xs:string" use="required"/>
</xs:complexType>

<xs:simpleType name="resourceType">
Expand Down
1 change: 1 addition & 0 deletions src/Migration/ResourceModel/Destination.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ protected function getResourceConfig()
$config['password'] = !empty($destination[$destinationType]['password'])
? $destination[$destinationType]['password']
: '';
$config['initStatements'] = $destination[$destinationType]['initStatements'];
return $config;
}

Expand Down
1 change: 1 addition & 0 deletions src/Migration/ResourceModel/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ protected function getResourceConfig()
$config['password'] = !empty($source[$sourceType]['password'])
? $source[$sourceType]['password']
: '';
$config['initStatements'] = $source[$sourceType]['initStatements'];
return $config;
}

Expand Down