mirror of
https://github.com/elyby/accounts.git
synced 2024-11-26 16:52:02 +05:30
50439fdaeb
У EmailActivation добавлено поле $_data и дописано поведение для работы с ним Упрощено подключение фикстур для EmailActivations
16 lines
331 B
PHP
16 lines
331 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m160515_153724_email_activation_data extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->addColumn('{{%email_activations}}', '_data', $this->text()->after('type'));
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->dropColumn('{{%email_activations}}', '_data');
|
|
}
|
|
|
|
}
|