From f5e8bcf6699b2d4e5473cd0b26eaac71039df24c Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 17 Oct 2020 20:18:30 +0200 Subject: [PATCH] More fixes to align with upstream 2.11.x branch. --- lib/Doctrine/DBAL/Exception/NoKeyValue.php | 4 ++-- lib/Doctrine/DBAL/Platforms/SqlitePlatform.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/DBAL/Exception/NoKeyValue.php b/lib/Doctrine/DBAL/Exception/NoKeyValue.php index 34093704aa1..a3d243495c1 100644 --- a/lib/Doctrine/DBAL/Exception/NoKeyValue.php +++ b/lib/Doctrine/DBAL/Exception/NoKeyValue.php @@ -2,7 +2,7 @@ namespace Doctrine\DBAL\Exception; -use Doctrine\DBAL\Exception; +use Doctrine\DBAL\DBALException; use function sprintf; @@ -11,7 +11,7 @@ * * @psalm-immutable */ -final class NoKeyValue extends Exception +final class NoKeyValue extends DBALException { public static function fromColumnCount(int $columnCount): self { diff --git a/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php b/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php index 4e6b4b23a73..b6345e6884c 100644 --- a/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php +++ b/lib/Doctrine/DBAL/Platforms/SqlitePlatform.php @@ -722,7 +722,7 @@ protected function getPostAlterTableIndexForeignKeySQL(TableDiff $diff) $fromTable = $diff->fromTable; if (! $fromTable instanceof Table) { - throw new Exception( + throw new DBALException( 'Sqlite platform requires for alter table the table diff with reference to original table schema' ); }