@@ -111,6 +111,54 @@ public function disableModule($moduleName)
111
111
return $ this ->shell ->execute ($ disableModuleCommand );
112
112
}
113
113
114
+ /**
115
+ * Split quote db configuration.
116
+ *
117
+ * @return void
118
+ * @throws LocalizedException
119
+ * @deprecated split database solution is deprecated and will be removed
120
+ */
121
+ public function splitQuote ()
122
+ {
123
+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
124
+ trigger_error ('Method is deprecated ' , E_USER_DEPRECATED );
125
+
126
+ $ initParams = $ this ->parametersHolder ->getInitParams ();
127
+ $ installParams = $ this ->toCliArguments (
128
+ $ this ->parametersHolder ->getDbData ('checkout ' )
129
+ );
130
+ $ command = $ this ->getCliScriptCommand () . ' setup:db-schema:split-quote ' .
131
+ implode (" " , array_keys ($ installParams )) .
132
+ ' -vvv --no-interaction --magento-init-params=" ' .
133
+ $ initParams ['magento-init-params ' ] . '" ' ;
134
+
135
+ $ this ->shell ->execute ($ command , array_values ($ installParams ));
136
+ }
137
+
138
+ /**
139
+ * Split sales db configuration.
140
+ *
141
+ * @return void
142
+ * @throws LocalizedException
143
+ * @deprecated split database solution is deprecated and will be removed
144
+ */
145
+ public function splitSales ()
146
+ {
147
+ //phpcs:ignore Magento2.Functions.DiscouragedFunction
148
+ trigger_error ('Method is deprecated ' , E_USER_DEPRECATED );
149
+
150
+ $ initParams = $ this ->parametersHolder ->getInitParams ();
151
+ $ installParams = $ this ->toCliArguments (
152
+ $ this ->parametersHolder ->getDbData ('sales ' )
153
+ );
154
+ $ command = $ this ->getCliScriptCommand () . ' setup:db-schema:split-sales ' .
155
+ implode (" " , array_keys ($ installParams )) .
156
+ ' -vvv --magento-init-params=" ' .
157
+ $ initParams ['magento-init-params ' ] . '" ' ;
158
+
159
+ $ this ->shell ->execute ($ command , array_values ($ installParams ));
160
+ }
161
+
114
162
/**
115
163
* Clean all types of cache
116
164
*/
0 commit comments