Spec-Zone.ru › Laravel 6

ChangeColumn

class ChangeColumn (View source)

Методы

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

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

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

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

static TablegetTableWithColumnChanges(Blueprint $blueprint, Table $table)

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

static ColumngetDoctrineColumn(Table $table, Fluent $fluent)

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

static arraygetDoctrineColumnChangeOptions(Fluent $fluent)

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

static TypegetDoctrineColumnType(string $type)

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

static intcalculateDoctrineTextLength(string $type)

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

static booldoesntNeedCharacterOptions(string $type)

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

static string|nullmapFluentOptionToDoctrine(string $attribute)

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

static mixedmapFluentValueToDoctrine(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

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

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

Параметры

Grammar$grammar
Blueprint$blueprint
AbstractSchemaManager$schema

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

TableDiff|bool

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/6.x/Illuminate/Database/Schema/Grammars/ChangeColumn.html

Spec-Zone.ru

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