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-запросов.
static protected TableDiff getChangedDiff(Grammar $grammar, Blueprint $blueprint, AbstractSchemaManager $schema)
Получить разницу таблиц Doctrine для заданных изменений.
static protected Table getTableWithColumnChanges(Blueprint $blueprint, Table $table)
Получить копию заданной таблицы Doctrine после внесения изменений в столбцы.
static protected Column getDoctrineColumn(Table $table, Fluent $fluent)
Получить экземпляр столбца Doctrine для изменения столбца.
static protected array getDoctrineColumnChangeOptions(Fluent $fluent)
Получить опции изменения столбца Doctrine.
static protected Type getDoctrineColumnType(string $type)
Получить тип столбца Doctrine.
static protected int calculateDoctrineTextLength(string $type)
Вычислить правильную длину столбца для принудительного использования типа текста Doctrine.
static protected bool doesntNeedCharacterOptions(string $type)
Определить, требует ли заданный тип опций символов/сортировки.
static protected string|null mapFluentOptionToDoctrine(string $attribute)
Получить соответствующую опцию Doctrine для заданного имени атрибута Fluent.
static protected mixed mapFluentValueToDoctrine(string $option, mixed $value)
Получить соответствующее значение Doctrine для заданного атрибута Fluent.
© 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