public function collect(TableDiff $tableDiff)
    {
        if ($tableDiff->getOldAsset()->getName() !== $tableDiff->getNewAsset()->getName()) {
            $this->renameTableQueries = array_merge(
                $this->renameTableQueries,
                $this->platform->getRenameTableSQLQueries($tableDiff)
            );
        }

        $this->collectColumns($tableDiff);
        $this->collectPrimaryKeys($tableDiff);
        $this->collectForeignKeys($tableDiff);
        $this->collectIndexes($tableDiff);
        $this->collectChecks($tableDiff);
    }
public function collect(TableDiff $tableDiff)
    {
        if ($tableDiff->getOldAsset()->getName() !== $tableDiff->getNewAsset()->getName()) {
            $this->renameTableQueries = array_merge(
                $this->renameTableQueries,
                $this->platform->getRenameTableSQLQueries($tableDiff)
            );
        }

        $this->collectColumns($tableDiff);
        $this->collectPrimaryKeys($tableDiff);
        $this->collectForeignKeys($tableDiff);
        $this->collectIndexes($tableDiff);
        $this->collectChecks($tableDiff);
    }
public function collect ( TableDiff $ tableDiff ) { if ( $ tableDiff -> getOldAsset ( ) -> getName ( ) !== $ tableDiff -> getNewAsset ( ) -> getName ( ) ) { $ this -> renameTableQueries = array_merge ( $ this -> renameTableQueries , $ this -> platform -> getRenameTableSQLQueries ( $ tableDiff ) ) ; } $ this -> collectColumns ( $ tableDiff ) ; $ this -> collectPrimaryKeys ( $ tableDiff ) ; $ this -> collectForeignKeys ( $ tableDiff ) ; $ this -> collectIndexes ( $ tableDiff ) ; $ this -> collectChecks ( $ tableDiff ) ; }
Collects queries to alter tables.

@param \Fridge\DBAL\Schema\Diff\TableDiff $tableDiff The table difference.
Collects queries to alter tables .