mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Реализованы формы для шагов смены E-mail адреса, покрыты unit-тестами
У EmailActivation добавлено поле $_data и дописано поведение для работы с ним Упрощено подключение фикстур для EmailActivations
This commit is contained in:
15
console/migrations/m160515_153724_email_activation_data.php
Normal file
15
console/migrations/m160515_153724_email_activation_data.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user