src/Phinx/Db/Adapter/SQLiteAdapter.php
protected function copyAndDropTmpTable($instructions, $tableName)
    {
        $instructions->addPostStep(function ($state) use ($tableName) {
            $this->copyDataToNewTable(
                $tableName,
                $state['tmpTableName'],
                $state['writeColumns'],
                $state['selectColumns']
            );

            $this->execute(sprintf('DROP TABLE %s', $this->quoteTableName($state['tmpTableName'])));

            return $state;
        });

        return $instructions;
    }
protected function copyAndDropTmpTable($instructions, $tableName)
    {
        $instructions->addPostStep(function ($state) use ($tableName) {
            $this->copyDataToNewTable(
                $tableName,
                $state['tmpTableName'],
                $state['writeColumns'],
                $state['selectColumns']
            );

            $this->execute(sprintf('DROP TABLE %s', $this->quoteTableName($state['tmpTableName'])));

            return $state;
        });

        return $instructions;
    }
protected function copyAndDropTmpTable ( $ instructions , $ tableName ) { $ instructions -> addPostStep ( function ( $ state ) use ( $ tableName ) { $ this -> copyDataToNewTable ( $ tableName , $ state [ 'tmpTableName' ] , $ state [ 'writeColumns' ] , $ state [ 'selectColumns' ] ) ; $ this -> execute ( sprintf ( 'DROP TABLE %s' , $ this -> quoteTableName ( $ state [ 'tmpTableName' ] ) ) ) ; return $ state ; } ) ; return $ instructions ; }
Modifies the passed instructions to copy all data from the tmp table into
the provided table and then drops the tmp table.

@param AlterInstructions $instructions The instructions to modify
@param string $tableName The table name to copy the data to
@return AlterInstructions
Modifies the passed instructions to copy all data from the tmp table into the provided table and then drops the tmp table .