File tree 3 files changed +8
-6
lines changed
src/Migration/ResourceModel
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 99
99
<xs : element name =" progress_bar_format" type =" xs:string" maxOccurs =" 1" />
100
100
<xs : element name =" upgrade_customer_password_hash" type =" xs:string" maxOccurs =" 1" />
101
101
<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" />
104
104
<xs : element name =" init_statements_destination" type =" xs:string" maxOccurs =" 1" />
105
105
<xs : any minOccurs =" 0" maxOccurs =" unbounded" processContents =" skip" />
106
106
</xs : choice >
Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ protected function getResourceConfig()
67
67
$ config ['database ' ]['password ' ] = !empty ($ destination [$ destinationType ]['password ' ])
68
68
? $ destination [$ destinationType ]['password ' ]
69
69
: '' ;
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
+ : '' ;
72
73
$ editionMigrate = $ this ->configReader ->getOption ('edition_migrate ' );
73
74
if (in_array ($ editionMigrate , [Config::EDITION_MIGRATE_CE_TO_EE , Config::EDITION_MIGRATE_EE_TO_EE ])) {
74
75
$ 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()
44
44
? $ source [$ sourceType ]['password ' ]
45
45
: '' ;
46
46
$ 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
+ : '' ;
49
50
if (in_array ($ editionMigrate , [Config::EDITION_MIGRATE_CE_TO_EE , Config::EDITION_MIGRATE_EE_TO_EE ])) {
50
51
$ config ['init_select_parts ' ] = ['disable_staging_preview ' => true ];
51
52
}
You can’t perform that action at this time.
0 commit comments