src/models/Schema.php
public function getDropTableData(TableSchema $table, $indent = 0)
    {
        // Do not use "truncate tableName", it will delete all data of table, include data before you run "./yii migrate" commond

        $definition = $this->textIndent($indent);
        $definition .= "\$this->_transaction->rollBack();";
        $definition .= self::ENTER;

        return $definition;
    }
public function getDropTableData(TableSchema $table, $indent = 0)
    {
        // Do not use "truncate tableName", it will delete all data of table, include data before you run "./yii migrate" commond

        $definition = $this->textIndent($indent);
        $definition .= "\$this->_transaction->rollBack();";
        $definition .= self::ENTER;

        return $definition;
    }
truncate table data
@param TableSchema $table
@param $indent int text-indent 文本缩进
@return string