Spec-Zone.ru › Laravel 10

ChangeColumn

class ChangeColumn (View source)

Методы

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

Компилирует команду изменения столбца в серию SQL-запросов.

static TableDiff getChangedDiff(Grammar $grammar, Blueprint $blueprint, AbstractSchemaManager $schema)

Получить разницу таблиц Doctrine для заданных изменений.

static Table getTableWithColumnChanges(Blueprint $blueprint, Table $table)

Получить копию заданной таблицы Doctrine после внесения изменений в столбцы.

static Column getDoctrineColumn(Table $table, Fluent $fluent)

Получить экземпляр столбца Doctrine для изменения столбца.

static array getDoctrineColumnChangeOptions(Fluent $fluent)

Получить параметры изменения столбца Doctrine.

static Type getDoctrineColumnType(string $type)

Получить тип столбца Doctrine.

static int calculateDoctrineTextLength(string $type)

Вычислить правильную длину столбца для принудительного использования типа текста Doctrine.

static bool doesntNeedCharacterOptions(string $type)

Определить, не требуются ли параметры символов/сортировки для данного типа.

static string|null mapFluentOptionToDoctrine(string $attribute)

Получить соответствующий параметр Doctrine для заданного имени атрибута Fluent.

static mixed mapFluentValueToDoctrine(string $option, mixed $value)

Получить соответствующее значение Doctrine для заданного атрибута Fluent.

Подробности

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

Компилирует команду изменения столбца в серию SQL-запросов.

Параметры

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

Возвращаемое значение

array

Исключения

RuntimeException
END_OF_DOCUMENT_MARKER

static protected TableDiff getChangedDiff(Grammar $grammar, Blueprint $blueprint, AbstractSchemaManager $schema)

Получить разницу таблиц Doctrine для заданных изменений.

Параметры

Grammar $grammar
Blueprint $blueprint
AbstractSchemaManager $schema

Возвращаемое значение

TableDiff

static protected Table getTableWithColumnChanges(Blueprint $blueprint, Table $table)

Получить копию заданной таблицы Doctrine после внесения изменений в столбцы.

Параметры

Blueprint $blueprint
Table $table

Возвращаемое значение

Table

static protected Column getDoctrineColumn(Table $table, Fluent $fluent)

Получить экземпляр столбца Doctrine для изменения столбца.

Параметры

Table $table
Fluent $fluent

Возвращаемое значение

Column

static protected array getDoctrineColumnChangeOptions(Fluent $fluent)

Получить опции изменения столбца Doctrine.

Параметры

Fluent $fluent

Возвращаемое значение

array

static protected Type getDoctrineColumnType(string $type)

Получить тип столбца Doctrine.

Параметры

string $type

Возвращаемое значение

Type

static protected int calculateDoctrineTextLength(string $type)

Вычислить правильную длину столбца для принудительного использования типа текста Doctrine.

Параметры

string $type

Возвращаемое значение

int

static protected bool doesntNeedCharacterOptions(string $type)

Определить, требует ли заданный тип опций символов/сортировки.

Параметры

string $type

Возвращаемое значение

bool

static protected string|null mapFluentOptionToDoctrine(string $attribute)

Получить соответствующую опцию Doctrine для заданного имени атрибута Fluent.

Параметры

string $attribute

Возвращаемое значение

string|null

static protected mixed mapFluentValueToDoctrine(string $option, mixed $value)

Получить соответствующее значение Doctrine для заданного атрибута Fluent.

Параметры

string $option
mixed $value

Возвращаемое значение

mixed

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API