mirror of
https://github.com/elyby/accounts.git
synced 2024-11-19 03:33:06 +05:30
16 lines
345 B
PHP
16 lines
345 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m160104_150157_account_extended_info extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->addColumn('{{%accounts}}', 'username', $this->string()->unique()->notNull() . ' AFTER `uuid`');
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->dropColumn('{{%accounts}}', 'username');
|
|
}
|
|
|
|
}
|