src/Phinx/Db/Adapter/SQLiteAdapter.php
protected function copyDataToNewTable($tableName, $tmpTableName, $writeColumns, $selectColumns)
    {
        $sql = sprintf(
            'INSERT INTO %s(%s) SELECT %s FROM %s',
            $this->quoteTableName($tableName),
            implode(', ', $writeColumns),
            implode(', ', $selectColumns),
            $this->quoteTableName($tmpTableName)
        );
        $this->execute($sql);
    }
protected function copyDataToNewTable($tableName, $tmpTableName, $writeColumns, $selectColumns)
    {
        $sql = sprintf(
            'INSERT INTO %s(%s) SELECT %s FROM %s',
            $this->quoteTableName($tableName),
            implode(', ', $writeColumns),
            implode(', ', $selectColumns),
            $this->quoteTableName($tmpTableName)
        );
        $this->execute($sql);
    }
protected function copyDataToNewTable ( $ tableName , $ tmpTableName , $ writeColumns , $ selectColumns ) { $ sql = sprintf ( 'INSERT INTO %s(%s) SELECT %s FROM %s' , $ this -> quoteTableName ( $ tableName ) , implode ( ', ' , $ writeColumns ) , implode ( ', ' , $ selectColumns ) , $ this -> quoteTableName ( $ tmpTableName ) ) ; $ this -> execute ( $ sql ) ; }
Copies all the data from a tmp table to another table

@param string $tableName The table name to copy the data to
@param string $tmpTableName The tmp table name where the data is stored
@param string[] $writeColumns The list of columns in the target table
@param string[] $selectColumns The list of columns in the tmp table
@return void
Copies all the data from a tmp table to another table