class RenameColumn

Methods

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

Compile a rename column command.

static TableDiff
getRenamedDiff(Grammar $grammar, Blueprint $blueprint, Fluent $command, Column $column, AbstractSchemaManager $schema)

Get a new column instance with the new column name.

static TableDiff
setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column)

Set the renamed columns on the table diff.

Details

at line 23
static array compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection)

Compile a rename column command.

Parameters

Grammar $grammar
Blueprint $blueprint
Fluent $command
Connection $connection

Return Value

array

at line 46
static protected TableDiff getRenamedDiff(Grammar $grammar, Blueprint $blueprint, Fluent $command, Column $column, AbstractSchemaManager $schema)

Get a new column instance with the new column name.

Parameters

Grammar $grammar
Blueprint $blueprint
Fluent $command
Column $column
AbstractSchemaManager $schema

Return Value

TableDiff

at line 61
static protected TableDiff setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column)

Set the renamed columns on the table diff.

Parameters

TableDiff $tableDiff
Fluent $command
Column $column

Return Value

TableDiff