File tree Expand file tree Collapse file tree
src/Migration/ResourceModel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 <xs : element name =" progress_bar_format" type =" xs:string" maxOccurs =" 1" />
100100 <xs : element name =" upgrade_customer_password_hash" type =" xs:string" maxOccurs =" 1" />
101101 <xs : element name =" crypt_key" type =" xs:string" maxOccurs =" 1" />
102- <xs : element name =" edition_migrate" type =" xs:string" maxOccurs =" 1" />
103- <xs : element name =" init_statements_source" type =" xs:string" maxOccurs =" 1" />
102+ <xs : element name =" edition_migrate" type =" xs:string" minOccurs = " 0 " maxOccurs =" 1" />
103+ <xs : element name =" init_statements_source" type =" xs:string" minOccurs = " 0 " maxOccurs =" 1" />
104104 <xs : element name =" init_statements_destination" type =" xs:string" maxOccurs =" 1" />
105105 <xs : any minOccurs =" 0" maxOccurs =" unbounded" processContents =" skip" />
106106 </xs : choice >
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ protected function getResourceConfig()
6767 $ config ['database ' ]['password ' ] = !empty ($ destination [$ destinationType ]['password ' ])
6868 ? $ destination [$ destinationType ]['password ' ]
6969 : '' ;
70- $ initStatements = $ this ->configReader ->getOption ('init_statements_destination ' );
71- $ config ['database ' ]['initStatements ' ] = $ initStatements ;
70+ $ config ['database ' ]['initStatements ' ] = !empty ($ this ->configReader ->getOption ('init_statements_destination ' ))
71+ ? $ this ->configReader ->getOption ('init_statements_destination ' )
72+ : '' ;
7273 $ editionMigrate = $ this ->configReader ->getOption ('edition_migrate ' );
7374 if (in_array ($ editionMigrate , [Config::EDITION_MIGRATE_CE_TO_EE , Config::EDITION_MIGRATE_EE_TO_EE ])) {
7475 $ config ['init_select_parts ' ] = ['disable_staging_preview ' => true ];
Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ protected function getResourceConfig()
4444 ? $ source [$ sourceType ]['password ' ]
4545 : '' ;
4646 $ editionMigrate = $ this ->configReader ->getOption ('edition_migrate ' );
47- $ initStatements = $ this ->configReader ->getOption ('init_statements_source ' );
48- $ config ['database ' ]['initStatements ' ] = $ initStatements ;
47+ $ config ['database ' ]['initStatements ' ] = !empty ($ this ->configReader ->getOption ('init_statements_source ' ))
48+ ? $ this ->configReader ->getOption ('init_statements_source ' )
49+ : '' ;
4950 if (in_array ($ editionMigrate , [Config::EDITION_MIGRATE_CE_TO_EE , Config::EDITION_MIGRATE_EE_TO_EE ])) {
5051 $ config ['init_select_parts ' ] = ['disable_staging_preview ' => true ];
5152 }
You can’t perform that action at this time.
0 commit comments