Spec-Zone.ru › Laravel 5.8

ChangeColumn

class ChangeColumn (View source)

Методы

массив compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection)

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

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

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

Table getTableWithColumnChanges(Blueprint $blueprint, Table $table)

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

Column getDoctrineColumn(Table $table, Fluent $fluent)

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

массив getDoctrineColumnChangeOptions(Fluent $fluent)

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

Type getDoctrineColumnType(string $type)

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

int calculateDoctrineTextLength(string $type)

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

string|null mapFluentOptionToDoctrine(string $attribute)

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

mixed mapFluentValueToDoctrine(string $option, mixed $value)

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

Детали

static массив compile(Grammar $grammar, Blueprint $blueprint, Fluent $command, Connection $connection)

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

Параметры

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

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

массив

Исключения

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 массив getDoctrineColumnChangeOptions(Fluent $fluent)

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

Параметры

Fluent $fluent

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

массив

static protected Type getDoctrineColumnType(string $type)

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

Параметры

string $type

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

Type

static protected int calculateDoctrineTextLength(string $type)

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

Параметры

string $type

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

int

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

Spec-Zone.ru

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