mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +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');
 | 
						|
    }
 | 
						|
 | 
						|
}
 |