|
9 | 9 | /** @psalm-immutable */
|
10 | 10 | class SchemaException extends \Exception implements Exception
|
11 | 11 | {
|
12 |
| - public const TABLE_DOESNT_EXIST = 10; |
13 |
| - public const TABLE_ALREADY_EXISTS = 20; |
14 |
| - public const COLUMN_DOESNT_EXIST = 30; |
15 |
| - public const COLUMN_ALREADY_EXISTS = 40; |
16 |
| - public const INDEX_DOESNT_EXIST = 50; |
17 |
| - public const INDEX_ALREADY_EXISTS = 60; |
18 |
| - public const SEQUENCE_DOENST_EXIST = 70; |
19 |
| - public const SEQUENCE_ALREADY_EXISTS = 80; |
20 |
| - public const INDEX_INVALID_NAME = 90; |
21 |
| - public const FOREIGNKEY_DOESNT_EXIST = 100; |
22 |
| - public const CONSTRAINT_DOESNT_EXIST = 110; |
| 12 | + /** @deprecated Use {@see TableDoesNotExist} instead. */ |
| 13 | + public const TABLE_DOESNT_EXIST = 10; |
| 14 | + |
| 15 | + /** @deprecated Use {@see TableAlreadyExists} instead. */ |
| 16 | + public const TABLE_ALREADY_EXISTS = 20; |
| 17 | + |
| 18 | + /** @deprecated Use {@see ColumnDoesNotExist} instead. */ |
| 19 | + public const COLUMN_DOESNT_EXIST = 30; |
| 20 | + |
| 21 | + /** @deprecated Use {@see ColumnAlreadyExists} instead. */ |
| 22 | + public const COLUMN_ALREADY_EXISTS = 40; |
| 23 | + |
| 24 | + /** @deprecated Use {@see IndexDoesNotExist} instead. */ |
| 25 | + public const INDEX_DOESNT_EXIST = 50; |
| 26 | + |
| 27 | + /** @deprecated Use {@see IndexAlreadyExists} instead. */ |
| 28 | + public const INDEX_ALREADY_EXISTS = 60; |
| 29 | + |
| 30 | + /** @deprecated Use {@see SequenceDoesNotExist} instead. */ |
| 31 | + public const SEQUENCE_DOENST_EXIST = 70; |
| 32 | + |
| 33 | + /** @deprecated Use {@see SequenceAlreadyExists} instead. */ |
| 34 | + public const SEQUENCE_ALREADY_EXISTS = 80; |
| 35 | + |
| 36 | + /** @deprecated Use {@see IndexNameInvalid} instead. */ |
| 37 | + public const INDEX_INVALID_NAME = 90; |
| 38 | + |
| 39 | + /** @deprecated Use {@see ForeignKeyDoesNotExist} instead. */ |
| 40 | + public const FOREIGNKEY_DOESNT_EXIST = 100; |
| 41 | + |
| 42 | + /** @deprecated Use {@see UniqueConstraintDoesNotExist} instead. */ |
| 43 | + public const CONSTRAINT_DOESNT_EXIST = 110; |
| 44 | + |
| 45 | + /** @deprecated Use {@see NamespaceAlreadyExists} instead. */ |
23 | 46 | public const NAMESPACE_ALREADY_EXISTS = 120;
|
24 | 47 | }
|
0 commit comments