src/Migration/Adapter/Generator/PhinxMySqlGenerator.php
protected function getPrimaryKeys(array $table): array
    {
        $primaryKeys = [];
        foreach ($table['columns'] as $column) {
            $columnName = $column['COLUMN_NAME'];
            $columnKey = $column['COLUMN_KEY'];
            if ($columnKey !== 'PRI') {
                continue;
            }
            $primaryKeys[] = $columnName;
        }

        return $primaryKeys;
    }
protected function getPrimaryKeys(array $table): array
    {
        $primaryKeys = [];
        foreach ($table['columns'] as $column) {
            $columnName = $column['COLUMN_NAME'];
            $columnKey = $column['COLUMN_KEY'];
            if ($columnKey !== 'PRI') {
                continue;
            }
            $primaryKeys[] = $columnName;
        }

        return $primaryKeys;
    }
protected function getPrimaryKeys ( array $ table ) : array { $ primaryKeys = [ ] ; foreach ( $ table [ 'columns' ] as $ column ) { $ columnName = $ column [ 'COLUMN_NAME' ] ; $ columnKey = $ column [ 'COLUMN_KEY' ] ; if ( $ columnKey !== 'PRI' ) { continue ; } $ primaryKeys [ ] = $ columnName ; } return $ primaryKeys ; }
Collect alternate primary keys.

@param array $table

@return array
Collect alternate primary keys .