lib/Doctrine/DBAL/Platforms/SqlitePlatform.php
private function getNonAutoincrementPrimaryKeyDefinition(array $columns, array $options) : string
    {
        if (empty($options['primary'])) {
            return '';
        }

        $keyColumns = array_unique(array_values($options['primary']));

        foreach ($keyColumns as $keyColumn) {
            if (! empty($columns[$keyColumn]['autoincrement'])) {
                return '';
            }
        }

        return ', PRIMARY KEY(' . implode(', ', $keyColumns) . ')';
    }
private function getNonAutoincrementPrimaryKeyDefinition(array $columns, array $options) : string
    {
        if (empty($options['primary'])) {
            return '';
        }

        $keyColumns = array_unique(array_values($options['primary']));

        foreach ($keyColumns as $keyColumn) {
            if (! empty($columns[$keyColumn]['autoincrement'])) {
                return '';
            }
        }

        return ', PRIMARY KEY(' . implode(', ', $keyColumns) . ')';
    }
private function getNonAutoincrementPrimaryKeyDefinition ( array $ columns , array $ options ) : string { if ( empty ( $ options [ 'primary' ] ) ) { return '' ; } $ keyColumns = array_unique ( array_values ( $ options [ 'primary' ] ) ) ; foreach ( $ keyColumns as $ keyColumn ) { if ( ! empty ( $ columns [ $ keyColumn ] [ 'autoincrement' ] ) ) { return '' ; } } return ', PRIMARY KEY(' . implode ( ', ' , $ keyColumns ) . ')' ; }
Generate a PRIMARY KEY definition if no autoincrement value is used

@param mixed[][] $columns
@param mixed[]   $options
Generate a PRIMARY KEY definition if no autoincrement value is used