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

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.