File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -226,10 +226,10 @@ public function actionDump()
226226 }
227227
228228 /**
229- * EXPERIMENTAL: data only dump
229+ * export data tables, without logs and caches
230230 * @throws \yii\base\Exception
231231 */
232- public function actionXDumpData (){
232+ public function actionExport (){
233233 $ fileName = $ this ->getFilePrefix ()."_data.sql " ;
234234 $ command = new Command ('mysqldump ' );
235235
@@ -264,6 +264,14 @@ public function actionXDumpData(){
264264 $ this ->stdout ("\nMySQL dump successfully written to ' $ file' \n" , Console::FG_GREEN );
265265 }
266266
267+ /**
268+ * Deprecated - alias for export
269+ */
270+ public function actionXDumpData (){
271+ \Yii::warning ('x-dump-data is deprecated, please use export ' , __METHOD__ );
272+ return $ this ->actionExport ();
273+ }
274+
267275 /**
268276 * EXPERIMENTAL: Schema and/or Data dumps
269277 *
You can’t perform that action at this time.
0 commit comments