mirror of
https://github.com/elyby/accounts.git
synced 2024-11-07 00:29:00 +05:30
16 lines
295 B
PHP
16 lines
295 B
PHP
|
<?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');
|
||
|
}
|
||
|
|
||
|
}
|