src/DumpController.php
public function actionDrop()
    {
        $this->output->startPrintf('Process');
        $tableOptions = $this->getOptions($this->table);
        $filterOptions = $this->getOptions($this->filter);

        $dropTableInfo = Yii::t('dump', 'Drop Table');
        $dropDataInfo = Yii::t('dump', 'Drop Data Of Table');
        $dropKeyInfo = Yii::t('dump', 'Drop Key Of Table');
        $dropFKInfo = Yii::t('dump', 'Drop Foreign Key Of Table');

        foreach ($this->db->getSchema()->getTableSchemas() as $table) {
            // filter some table  -filter=...  -table=...
            if ($this->filterTable($table->name, $filterOptions, $tableOptions)) {
                continue;
            }

            switch ($this->type) {
                case '0':
                    $this->printf($table, 'dropTable', $dropTableInfo);
                    break;

                case '1':
                    $this->printf($table, 'dropTableData', $dropDataInfo);
                    break;

                case '2':
                    $this->printf($table, 'dropKey', $dropKeyInfo);
                    break;

                case '3':
                    $this->printf($table, 'dropFK', $dropFKInfo); // foreign key
                    break;

                default:
                    $this->printf($table, 'dropTable', $dropTableInfo);
                    $this->printf($table, 'dropTableData', $dropDataInfo);
                    $this->printf($table, 'dropKey', $dropKeyInfo);
                    $this->printf($table, 'dropFK', $dropFKInfo); // foreign key
                    break;
            }

        }

        $this->output->conclusion($this->generations, $this->filters);
        $this->output->endPrintf('Process');
        return 0;
    }
public function actionDrop()
    {
        $this->output->startPrintf('Process');
        $tableOptions = $this->getOptions($this->table);
        $filterOptions = $this->getOptions($this->filter);

        $dropTableInfo = Yii::t('dump', 'Drop Table');
        $dropDataInfo = Yii::t('dump', 'Drop Data Of Table');
        $dropKeyInfo = Yii::t('dump', 'Drop Key Of Table');
        $dropFKInfo = Yii::t('dump', 'Drop Foreign Key Of Table');

        foreach ($this->db->getSchema()->getTableSchemas() as $table) {
            // filter some table  -filter=...  -table=...
            if ($this->filterTable($table->name, $filterOptions, $tableOptions)) {
                continue;
            }

            switch ($this->type) {
                case '0':
                    $this->printf($table, 'dropTable', $dropTableInfo);
                    break;

                case '1':
                    $this->printf($table, 'dropTableData', $dropDataInfo);
                    break;

                case '2':
                    $this->printf($table, 'dropKey', $dropKeyInfo);
                    break;

                case '3':
                    $this->printf($table, 'dropFK', $dropFKInfo); // foreign key
                    break;

                default:
                    $this->printf($table, 'dropTable', $dropTableInfo);
                    $this->printf($table, 'dropTableData', $dropDataInfo);
                    $this->printf($table, 'dropKey', $dropKeyInfo);
                    $this->printf($table, 'dropFK', $dropFKInfo); // foreign key
                    break;
            }

        }

        $this->output->conclusion($this->generations, $this->filters);
        $this->output->endPrintf('Process');
        return 0;
    }
print the 'dropTable' code.

@return integer the status of the action execution