mirror of
https://github.com/elyby/accounts.git
synced 2024-12-24 22:29:51 +05:30
16 lines
344 B
PHP
16 lines
344 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m160817_225019_registration_ip extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->addColumn('{{%accounts}}', 'registration_ip', 'VARBINARY(16) AFTER rules_agreement_version');
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->dropColumn('{{%accounts}}', 'registration_ip');
|
|
}
|
|
|
|
}
|