class Illuminate / Database / Schema / Grammars / RenameColumn
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

RenameColumn

Methods

public static

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

Compile a rename column command.

Parameters

protected static

getRenamedDiff ( Grammar $grammar , Blueprint $blueprint , Illuminate\...\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 Illuminate\...\Fluent
  • $column Doctrine\...\Column
  • $schema Doctrine\...\AbstractSchemaManager
protected static

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

Set the renamed columns on the table diff.

Parameters

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

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

Get the writable column options.

Parameters

  • $column Doctrine\...\Column