src/Driver/SQLite/SQLiteHandler.php
protected function createTemporary(AbstractTable $table): AbstractTable
    {
        //Temporary table is required to copy data over
        $temporary = clone $table;
        $temporary->setName('spiral_temp_' . $table->getName() . '_' . uniqid());

        //We don't need any indexes in temporary table
        foreach ($temporary->getIndexes() as $index) {
            $temporary->dropIndex($index->getColumns());
        }

        $this->createTable($temporary);

        return $temporary;
    }
protected function createTemporary(AbstractTable $table): AbstractTable
    {
        //Temporary table is required to copy data over
        $temporary = clone $table;
        $temporary->setName('spiral_temp_' . $table->getName() . '_' . uniqid());

        //We don't need any indexes in temporary table
        foreach ($temporary->getIndexes() as $index) {
            $temporary->dropIndex($index->getColumns());
        }

        $this->createTable($temporary);

        return $temporary;
    }
protected function createTemporary ( AbstractTable $ table ) : AbstractTable { //Temporary table is required to copy data over $ temporary = clone $ table ; $ temporary -> setName ( 'spiral_temp_' . $ table -> getName ( ) . '_' . uniqid ( ) ) ; //We don't need any indexes in temporary table foreach ( $ temporary -> getIndexes ( ) as $ index ) { $ temporary -> dropIndex ( $ index -> getColumns ( ) ) ; } $ this -> createTable ( $ temporary ) ; return $ temporary ; }
Temporary table based on parent.

@param AbstractTable $table
@return AbstractTable
Temporary table based on parent .