accounts/console/migrations/m161024_234121_remove_client_token_index.php

16 lines
350 B
PHP

<?php
use console\db\Migration;
class m161024_234121_remove_client_token_index extends Migration {
public function safeUp() {
$this->dropIndex('client_token', '{{%minecraft_access_keys}}');
}
public function safeDown() {
$this->createIndex('client_token', '{{%minecraft_access_keys}}', 'client_token', true);
}
}