SchemaException
extends Exception
in package
Tags
Table of Contents
- COLUMN_ALREADY_EXISTS = 40
- COLUMN_DOESNT_EXIST = 30
- CONSTRAINT_DOESNT_EXIST = 110
- FOREIGNKEY_DOESNT_EXIST = 100
- INDEX_ALREADY_EXISTS = 60
- INDEX_DOESNT_EXIST = 50
- INDEX_INVALID_NAME = 90
- NAMESPACE_ALREADY_EXISTS = 120
- SEQUENCE_ALREADY_EXISTS = 80
- SEQUENCE_DOENST_EXIST = 70
- TABLE_ALREADY_EXISTS = 20
- TABLE_DOESNT_EXIST = 10
- alterTableChangeNotSupported() : SchemaException
- columnAlreadyExists() : SchemaException
- columnDoesNotExist() : SchemaException
- driverRequired() : self
- foreignKeyDoesNotExist() : SchemaException
- indexAlreadyExists() : SchemaException
- indexDoesNotExist() : SchemaException
- indexNameInvalid() : SchemaException
- invalidDriverClass() : self
- invalidPlatformType() : self
- invalidPlatformVersionSpecified() : self
- Returns a new instance for an invalid specified platform version.
- invalidWrapperClass() : self
- namedForeignKeyRequired() : SchemaException
- namespaceAlreadyExists() : SchemaException
- noColumnsSpecifiedForTable() : self
- notSupported() : self
- sequenceAlreadyExists() : SchemaException
- sequenceDoesNotExist() : SchemaException
- tableAlreadyExists() : SchemaException
- tableDoesNotExist() : SchemaException
- typeAlreadyRegistered() : self
- typeExists() : self
- typeNotFound() : self
- typeNotRegistered() : self
- uniqueConstraintDoesNotExist() : SchemaException
- unknownColumnType() : self
- unknownDriver() : self
Constants
COLUMN_ALREADY_EXISTS
public
mixed
COLUMN_ALREADY_EXISTS
= 40
COLUMN_DOESNT_EXIST
public
mixed
COLUMN_DOESNT_EXIST
= 30
CONSTRAINT_DOESNT_EXIST
public
mixed
CONSTRAINT_DOESNT_EXIST
= 110
FOREIGNKEY_DOESNT_EXIST
public
mixed
FOREIGNKEY_DOESNT_EXIST
= 100
INDEX_ALREADY_EXISTS
public
mixed
INDEX_ALREADY_EXISTS
= 60
INDEX_DOESNT_EXIST
public
mixed
INDEX_DOESNT_EXIST
= 50
INDEX_INVALID_NAME
public
mixed
INDEX_INVALID_NAME
= 90
NAMESPACE_ALREADY_EXISTS
public
mixed
NAMESPACE_ALREADY_EXISTS
= 120
SEQUENCE_ALREADY_EXISTS
public
mixed
SEQUENCE_ALREADY_EXISTS
= 80
SEQUENCE_DOENST_EXIST
public
mixed
SEQUENCE_DOENST_EXIST
= 70
TABLE_ALREADY_EXISTS
public
mixed
TABLE_ALREADY_EXISTS
= 20
TABLE_DOESNT_EXIST
public
mixed
TABLE_DOESNT_EXIST
= 10
Methods
alterTableChangeNotSupported()
public
static alterTableChangeNotSupported(string $changeName) : SchemaException
Parameters
- $changeName : string
Return values
SchemaException —columnAlreadyExists()
public
static columnAlreadyExists(string $tableName, string $columnName) : SchemaException
Parameters
- $tableName : string
- $columnName : string
Return values
SchemaException —columnDoesNotExist()
public
static columnDoesNotExist(string $columnName, string $table) : SchemaException
Parameters
- $columnName : string
- $table : string
Return values
SchemaException —driverRequired()
public
static driverRequired([string|null $url = null ]) : self
Parameters
- $url : string|null = null
-
The URL that was provided in the connection parameters (if any).
Return values
self —foreignKeyDoesNotExist()
public
static foreignKeyDoesNotExist(string $fkName, string $table) : SchemaException
Parameters
- $fkName : string
- $table : string
Return values
SchemaException —indexAlreadyExists()
public
static indexAlreadyExists(string $indexName, string $table) : SchemaException
Parameters
- $indexName : string
- $table : string
Return values
SchemaException —indexDoesNotExist()
public
static indexDoesNotExist(string $indexName, string $table) : SchemaException
Parameters
- $indexName : string
- $table : string
Return values
SchemaException —indexNameInvalid()
public
static indexNameInvalid(string $indexName) : SchemaException
Parameters
- $indexName : string
Return values
SchemaException —invalidDriverClass()
public
static invalidDriverClass(string $driverClass) : self
Parameters
- $driverClass : string
Return values
self —invalidPlatformType()
public
static invalidPlatformType(mixed $invalidPlatform) : self
Parameters
- $invalidPlatform : mixed
Return values
self —invalidPlatformVersionSpecified()
Returns a new instance for an invalid specified platform version.
public
static invalidPlatformVersionSpecified(string $version, string $expectedFormat) : self
Parameters
- $version : string
-
The invalid platform version given.
- $expectedFormat : string
-
The expected platform version format.
Return values
self —invalidWrapperClass()
public
static invalidWrapperClass(string $wrapperClass) : self
Parameters
- $wrapperClass : string
Return values
self —namedForeignKeyRequired()
public
static namedForeignKeyRequired(Table $localTable, ForeignKeyConstraint $foreignKey) : SchemaException
Parameters
- $localTable : Table
- $foreignKey : ForeignKeyConstraint
Return values
SchemaException —namespaceAlreadyExists()
public
static namespaceAlreadyExists(string $namespaceName) : SchemaException
Parameters
- $namespaceName : string
Return values
SchemaException —noColumnsSpecifiedForTable()
public
static noColumnsSpecifiedForTable(string $tableName) : self
Parameters
- $tableName : string
Return values
self —notSupported()
public
static notSupported(string $method) : self
Parameters
- $method : string
Return values
self —sequenceAlreadyExists()
public
static sequenceAlreadyExists(string $name) : SchemaException
Parameters
- $name : string
Return values
SchemaException —sequenceDoesNotExist()
public
static sequenceDoesNotExist(string $name) : SchemaException
Parameters
- $name : string
Return values
SchemaException —tableAlreadyExists()
public
static tableAlreadyExists(string $tableName) : SchemaException
Parameters
- $tableName : string
Return values
SchemaException —tableDoesNotExist()
public
static tableDoesNotExist(string $tableName) : SchemaException
Parameters
- $tableName : string
Return values
SchemaException —typeAlreadyRegistered()
public
static typeAlreadyRegistered(Type $type) : self
Parameters
- $type : Type
Return values
self —typeExists()
public
static typeExists(string $name) : self
Parameters
- $name : string
Return values
self —typeNotFound()
public
static typeNotFound(string $name) : self
Parameters
- $name : string
Return values
self —typeNotRegistered()
public
static typeNotRegistered(Type $type) : self
Parameters
- $type : Type
Return values
self —uniqueConstraintDoesNotExist()
public
static uniqueConstraintDoesNotExist(string $constraintName, string $table) : SchemaException
Parameters
- $constraintName : string
- $table : string
Return values
SchemaException —unknownColumnType()
public
static unknownColumnType(string $name) : self
Parameters
- $name : string
Return values
self —unknownDriver()
public
static unknownDriver(string $unknownDriverName, array<string|int, string> $knownDrivers) : self
Parameters
- $unknownDriverName : string
- $knownDrivers : array<string|int, string>