private function collectPrimaryKeys(TableDiff $tableDiff)
    {
        if ($tableDiff->getCreatedPrimaryKey() !== null) {
            $this->createPrimaryKeyQueries = array_merge(
                $this->createPrimaryKeyQueries,
                $this->platform->getCreatePrimaryKeySQLQueries(
                    $tableDiff->getCreatedPrimaryKey(),
                    $tableDiff->getNewAsset()->getName()
                )
            );
        }

        if ($tableDiff->getDroppedPrimaryKey() !== null) {
            $this->dropPrimaryKeyQueries = array_merge(
                $this->dropPrimaryKeyQueries,
                $this->platform->getDropPrimaryKeySQLQueries(
                    $tableDiff->getDroppedPrimaryKey(),
                    $tableDiff->getNewAsset()->getName()
                )
            );
        }
    }
private function collectPrimaryKeys(TableDiff $tableDiff)
    {
        if ($tableDiff->getCreatedPrimaryKey() !== null) {
            $this->createPrimaryKeyQueries = array_merge(
                $this->createPrimaryKeyQueries,
                $this->platform->getCreatePrimaryKeySQLQueries(
                    $tableDiff->getCreatedPrimaryKey(),
                    $tableDiff->getNewAsset()->getName()
                )
            );
        }

        if ($tableDiff->getDroppedPrimaryKey() !== null) {
            $this->dropPrimaryKeyQueries = array_merge(
                $this->dropPrimaryKeyQueries,
                $this->platform->getDropPrimaryKeySQLQueries(
                    $tableDiff->getDroppedPrimaryKey(),
                    $tableDiff->getNewAsset()->getName()
                )
            );
        }
    }
private function collectPrimaryKeys ( TableDiff $ tableDiff ) { if ( $ tableDiff -> getCreatedPrimaryKey ( ) !== null ) { $ this -> createPrimaryKeyQueries = array_merge ( $ this -> createPrimaryKeyQueries , $ this -> platform -> getCreatePrimaryKeySQLQueries ( $ tableDiff -> getCreatedPrimaryKey ( ) , $ tableDiff -> getNewAsset ( ) -> getName ( ) ) ) ; } if ( $ tableDiff -> getDroppedPrimaryKey ( ) !== null ) { $ this -> dropPrimaryKeyQueries = array_merge ( $ this -> dropPrimaryKeyQueries , $ this -> platform -> getDropPrimaryKeySQLQueries ( $ tableDiff -> getDroppedPrimaryKey ( ) , $ tableDiff -> getNewAsset ( ) -> getName ( ) ) ) ; } }
Collect queries about primary keys to alter a table.

@param \Fridge\DBAL\Schema\Diff\TableDiff $tableDiff The table difference.
Collect queries about primary keys to alter a table .