Добавлен индекс для accounts.uuid

This commit is contained in:
ErickSkrauch 2016-11-04 18:49:16 +03:00
parent c324ebe1c6
commit 67cbf2a502

View 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');
}
}