class Illuminate / Database / Schema / Grammars / ChangeColumn

ChangeColumn

Methods

public static

compile ( $grammar , Blueprint $blueprint , Illuminate\...\Fluent $command , Connection $connection ) : array

Compile a change column command into a series of SQL statements.

Parameters

protected static

getChangedDiff ( $grammar , Blueprint $blueprint , Doctrine\...\AbstractSchemaManager $schema ) : Doctrine\...\TableDiff

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

protected static

getDoctrineColumn ( Doctrine\...\Table $table , Illuminate\...\Fluent $fluent ) : Doctrine\...\Column

Get the Doctrine column instance for a column change.

Parameters

  • $table Doctrine\...\Table
  • $fluent Illuminate\...\Fluent
protected static

getDoctrineColumnChangeOptions ( Illuminate\...\Fluent $fluent ) : array

Get the Doctrine column change options.

Parameters

  • $fluent Illuminate\...\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