aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php
blob: eb5b203fa8d5b4bdc97a5a9b39558b241417232c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace Wallabag\CoreBundle\Doctrine\DBAL\Driver;

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\PDOPgSql\Driver;
use Wallabag\CoreBundle\Doctrine\DBAL\Schema\CustomPostgreSqlSchemaManager;

/**
 * This custom driver allow to use a different schema manager
 * So we can fix the PostgreSQL 10 problem.
 *
 * @see https://github.com/wallabag/wallabag/issues/3479
 * @see https://github.com/doctrine/dbal/issues/2868
 */
class CustomPostgreSQLDriver extends Driver
{
    /**
     * {@inheritdoc}
     */
    public function getSchemaManager(Connection $conn)
    {
        return new CustomPostgreSqlSchemaManager($conn);
    }
}