mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Добавлен индекс для accounts.uuid
This commit is contained in:
		
							
								
								
									
										15
									
								
								console/migrations/m161104_150634_accounts_uuid_index.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								console/migrations/m161104_150634_accounts_uuid_index.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
use console\db\Migration;
 | 
			
		||||
 | 
			
		||||
class m161104_150634_accounts_uuid_index extends Migration {
 | 
			
		||||
 | 
			
		||||
    public function safeUp() {
 | 
			
		||||
        $this->createIndex('uuid', '{{%accounts}}', 'uuid', true);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function safeDown() {
 | 
			
		||||
        $this->dropColumn('{{%accounts}}', 'uuid');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user