RenameColumn
in package
Table of Contents
- compile() : array<string|int, mixed>
- Compile a rename column command.
- getRenamedDiff() : TableDiff
- Get a new column instance with the new column name.
- setRenamedColumns() : TableDiff
- Set the renamed columns on the table diff.
Methods
compile()
Compile a rename column command.
public
static compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection) : array<string|int, mixed>
Parameters
- $grammar : Grammar
- $blueprint : Blueprint
- $command : Fluent
- $connection : Connection
Return values
array<string|int, mixed> —getRenamedDiff()
Get a new column instance with the new column name.
protected
static getRenamedDiff(Grammar $grammar, Blueprint $blueprint, Fluent $command, Column $column, AbstractSchemaManager $schema) : TableDiff
Parameters
- $grammar : Grammar
- $blueprint : Blueprint
- $command : Fluent
- $column : Column
- $schema : AbstractSchemaManager
Return values
TableDiff —setRenamedColumns()
Set the renamed columns on the table diff.
protected
static setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column) : TableDiff