Skip to content

Commit ca9f247

Browse files
committed
added export command
1 parent 1b2275e commit ca9f247

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

console/controllers/MysqlController.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*

0 commit comments

Comments
 (0)