mirror of
https://github.com/elyby/accounts.git
synced 2024-11-06 08:11:24 +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');
|
||
|
}
|
||
|
|
||
|
}
|