mirror of
https://github.com/elyby/accounts.git
synced 2024-12-29 00:20:22 +05:30
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');
|
||
|
}
|
||
|
|
||
|
}
|