mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 23:50:19 +05:30
В класс миграции добавлено поведение по умолчанию при создании новой таблицы
This commit is contained in:
parent
0b67267426
commit
d0fcc8cd6f
@ -17,6 +17,14 @@ class Migration extends YiiMigration {
|
||||
return $tableOptions;
|
||||
}
|
||||
|
||||
public function createTable($table, $columns, $options = null) {
|
||||
if ($options === null) {
|
||||
$options = $this->getTableOptions();
|
||||
}
|
||||
|
||||
parent::createTable($table, $columns, $options);
|
||||
}
|
||||
|
||||
protected function primary(...$columns) {
|
||||
switch (count($columns)) {
|
||||
case 0:
|
||||
|
Loading…
Reference in New Issue
Block a user