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
ColumnAlreadyExists.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 ColumnAlreadyExists extends SchemaException |
| 8 | { |
| 9 | public static function new(string $tableName, string $columnName) : self |
| 10 | { |
| 11 | return new self(sprintf('The column "%s" on table "%s" already exists.', $columnName, $tableName), self::COLUMN_ALREADY_EXISTS); |
| 12 | } |
| 13 | } |
| 14 |