mirror of
https://github.com/elyby/accounts.git
synced 2024-08-25 13:59:53 +05:30
У 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');
|
|
}
|
|
|
|
}
|