W3cubDocs

/Laravel 8

RenameColumn

class RenameColumn (View source)

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

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

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

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Database/Schema/Grammars/RenameColumn.html