public function actionDataDump($table, $remove = 1)
    {
        $className = 'm' . gmdate('ymd_His') . '_' . $table . '_dump';
        if (!$data = $this->db->createCommand("SELECT * FROM {{{$table}}}")->queryAll()) {
            throw new Exception("No data found");
        }
        $columns = DbHelper::dataColumns($data);
        $sql = DbHelper::insertUpdate($table, $columns, $data)->getSql();
        $file = $this->migrationPath . DIRECTORY_SEPARATOR . $className . '.php';
        $content = $this->renderFile(Yii::getAlias($this->dumpTemplateFile), compact(
                'className', 'remove', 'sql', 'table'
            ));
        file_put_contents($file, $content);
        echo "New migration created successfully.\n";
    }