class
Illuminate
/
Database
/
Schema
/
Grammars
/
ChangeColumn
You are viewing an older version of the documentation. For the latest, please visit master documentation.
ChangeColumn
Methods
public
static
compile ( $grammar , Blueprint $blueprint , Fluent $command , Connection $connection ) : array
Compile a change column command into a series of SQL statements.
Parameters
- $grammar Grammar
- $blueprint Blueprint
- $command Fluent
- $connection Connection
protected
static
getChangedDiff ( $grammar , Blueprint $blueprint , Doctrine\...\AbstractSchemaManager $schema ) : Doctrine\...\TableDiff|bool
Get the Doctrine table difference for the given changes.
Parameters
protected
static
getTableWithColumnChanges ( Blueprint $blueprint , Doctrine\...\Table $table ) : Doctrine\...\Table
Get a copy of the given Doctrine table after making the column changes.
Parameters
- $blueprint Blueprint
- $table Doctrine\...\Table
protected
static
getDoctrineColumn ( Doctrine\...\Table $table , Fluent $fluent ) : Doctrine\...\Column
Get the Doctrine column instance for a column change.
Parameters
- $table Doctrine\...\Table
- $fluent Fluent
protected
static
getDoctrineColumnChangeOptions ( Fluent $fluent ) : array
Get the Doctrine column change options.
Parameters
- $fluent Fluent
protected
static
getDoctrineColumnType ( $type ) : Doctrine\...\Type
Get the doctrine column type.
Parameters
- $type string
protected
static
calculateDoctrineTextLength ( $type ) : int
Calculate the proper column length to force the Doctrine text type.
Parameters
- $type string
protected
static
doesntNeedCharacterOptions ( $type ) : bool
Determine if the given type does not need character / collation options.
Parameters
- $type string
protected
static
mapFluentOptionToDoctrine ( $attribute ) : string|null
Get the matching Doctrine option for a given Fluent attribute name.
Parameters
- $attribute string
protected
static
mapFluentValueToDoctrine ( $option , $value ) : mixed
Get the matching Doctrine value for a given Fluent attribute.
Parameters
- $option string
- $value mixed