mirror of
https://github.com/elyby/accounts.git
synced 2024-12-17 10:49:50 +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');
|
|
}
|
|
|
|
}
|