mailpoet
/
vendor-prefixed
/
doctrine
/
dbal
/
src
/
Schema
/
Exception
/
UniqueConstraintDoesNotExist.php
ColumnAlreadyExists.php
2 years ago
ColumnDoesNotExist.php
2 years ago
ForeignKeyDoesNotExist.php
2 years ago
IndexAlreadyExists.php
2 years ago
IndexDoesNotExist.php
2 years ago
IndexNameInvalid.php
2 years ago
InvalidTableName.php
2 years ago
NamedForeignKeyRequired.php
2 years ago
NamespaceAlreadyExists.php
2 years ago
SequenceAlreadyExists.php
2 years ago
SequenceDoesNotExist.php
2 years ago
TableAlreadyExists.php
2 years ago
TableDoesNotExist.php
2 years ago
UniqueConstraintDoesNotExist.php
2 years ago
UnknownColumnOption.php
2 years ago
index.php
2 years ago
UniqueConstraintDoesNotExist.php
14 lines
| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\DBAL\Schema\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\DBAL\Schema\SchemaException; |
| 6 | use function sprintf; |
| 7 | final class UniqueConstraintDoesNotExist extends SchemaException |
| 8 | { |
| 9 | public static function new(string $constraintName, string $table) : self |
| 10 | { |
| 11 | return new self(sprintf('There exists no unique constraint with the name "%s" on table "%s".', $constraintName, $table), self::CONSTRAINT_DOESNT_EXIST); |
| 12 | } |
| 13 | } |
| 14 |