diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-12-13 13:50:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-13 13:50:15 +0100 |
commit | 70265817aee257e7e635eda79ce3e037e3b4a242 (patch) | |
tree | 597e166497ba87778f48053cb4c7747405e280b1 /src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php | |
parent | 08d6497c9cfeb107ff9781c46bac6368f3f92c9f (diff) | |
parent | 2e9747a59a6011622588829e4605af3710b61a21 (diff) | |
download | wallabag-70265817aee257e7e635eda79ce3e037e3b4a242.tar.gz wallabag-70265817aee257e7e635eda79ce3e037e3b4a242.tar.zst wallabag-70265817aee257e7e635eda79ce3e037e3b4a242.zip |
Merge pull request #3488 from wallabag/pg-10
Add custom driver & schema manager for PostgreSQL 10
Diffstat (limited to 'src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php b/src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php new file mode 100644 index 00000000..eb5b203f --- /dev/null +++ b/src/Wallabag/CoreBundle/Doctrine/DBAL/Driver/CustomPostgreSQLDriver.php | |||
@@ -0,0 +1,25 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Doctrine\DBAL\Driver; | ||
4 | |||
5 | use Doctrine\DBAL\Connection; | ||
6 | use Doctrine\DBAL\Driver\PDOPgSql\Driver; | ||
7 | use Wallabag\CoreBundle\Doctrine\DBAL\Schema\CustomPostgreSqlSchemaManager; | ||
8 | |||
9 | /** | ||
10 | * This custom driver allow to use a different schema manager | ||
11 | * So we can fix the PostgreSQL 10 problem. | ||
12 | * | ||
13 | * @see https://github.com/wallabag/wallabag/issues/3479 | ||
14 | * @see https://github.com/doctrine/dbal/issues/2868 | ||
15 | */ | ||
16 | class CustomPostgreSQLDriver extends Driver | ||
17 | { | ||
18 | /** | ||
19 | * {@inheritdoc} | ||
20 | */ | ||
21 | public function getSchemaManager(Connection $conn) | ||
22 | { | ||
23 | return new CustomPostgreSqlSchemaManager($conn); | ||
24 | } | ||
25 | } | ||