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.
static protected TableDiff getRenamedDiff(Grammar $grammar, Blueprint $blueprint, Fluent $command, Column $column, AbstractSchemaManager $schema)
Get a new column instance with the new column name.
static protected TableDiff setRenamedColumns(TableDiff $tableDiff, Fluent $command, Column $column)
Set the renamed columns on the table diff.
© 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