accounts/console/migrations/m160817_225019_registration_ip.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');
}
}