class Illuminate / Database / Schema / Grammars / RenameColumn
You are viewing an older version of the documentation. For the latest, please visit master documentation.

RenameColumn

Methods

public static

compile ( Grammar $grammar , Blueprint $blueprint , Fluent $command , Connection $connection ) : array

Compile a rename column command.

Parameters

protected static

getRenamedDiff ( Grammar $grammar , Blueprint $blueprint , Fluent $command , Doctrine\...\Column $column , Doctrine\...\AbstractSchemaManager $schema ) : Doctrine\...\TableDiff

Get a new column instance with the new column name.

Parameters

  • $grammar Grammar
  • $blueprint Blueprint
  • $command Fluent
  • $column Doctrine\...\Column
  • $schema Doctrine\...\AbstractSchemaManager
protected static

setRenamedColumns ( Doctrine\...\TableDiff $tableDiff , Fluent $command , Doctrine\...\Column $column ) : Doctrine\...\TableDiff

Set the renamed columns on the table diff.

Parameters

  • $tableDiff Doctrine\...\TableDiff
  • $command Fluent
  • $column Doctrine\...\Column
private static

getWritableColumnOptions ( Doctrine\...\Column $column ) : array

Get the writable column options.

Parameters

  • $column Doctrine\...\Column