SchemaConfig
in package
Configuration for a Schema.
Table of Contents
Properties
- $defaultTableOptions : array<string|int, mixed>
- $hasExplicitForeignKeyIndexes : bool
- $maxIdentifierLength : int
- $name : string|null
Methods
- getDefaultTableOptions() : array<string|int, mixed>
- Gets the default options that are passed to Table instances created with Schema#createTable().
- getMaxIdentifierLength() : int
- getName() : string|null
- Gets the default namespace of schema objects.
- hasExplicitForeignKeyIndexes() : bool
- setDefaultTableOptions() : void
- setExplicitForeignKeyIndexes() : void
- setMaxIdentifierLength() : void
- setName() : void
- Sets the default namespace name of schema objects.
Properties
$defaultTableOptions
protected
array<string|int, mixed>
$defaultTableOptions
= []
$hasExplicitForeignKeyIndexes
protected
bool
$hasExplicitForeignKeyIndexes
= false
Tags
$maxIdentifierLength
protected
int
$maxIdentifierLength
= 63
$name
protected
string|null
$name
Methods
getDefaultTableOptions()
Gets the default options that are passed to Table instances created with Schema#createTable().
public
getDefaultTableOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getMaxIdentifierLength()
public
getMaxIdentifierLength() : int
Return values
intgetName()
Gets the default namespace of schema objects.
public
getName() : string|null
Return values
string|nullhasExplicitForeignKeyIndexes()
public
hasExplicitForeignKeyIndexes() : bool
Tags
Return values
boolsetDefaultTableOptions()
public
setDefaultTableOptions(array<string|int, mixed> $defaultTableOptions) : void
Parameters
- $defaultTableOptions : array<string|int, mixed>
setExplicitForeignKeyIndexes()
public
setExplicitForeignKeyIndexes(bool $flag) : void
Parameters
- $flag : bool
Tags
setMaxIdentifierLength()
public
setMaxIdentifierLength(int $length) : void
Parameters
- $length : int
setName()
Sets the default namespace name of schema objects.
public
setName(string $name) : void
Parameters
- $name : string
-
The value to set.