Из базы удалена таблица oauth_scopes

This commit is contained in:
ErickSkrauch
2016-11-27 19:19:13 +03:00
parent 744ec9520a
commit 1e94cda399
4 changed files with 35 additions and 14 deletions

View File

@@ -0,0 +1,25 @@
<?php
use console\db\Migration;
class m161127_145211_remove_oauth_scopes extends Migration {
public function safeUp() {
$this->dropTable('{{%oauth_scopes}}');
}
public function safeDown() {
$this->createTable('{{%oauth_scopes}}', [
'id' => $this->string(64),
$this->primary('id'),
]);
$this->batchInsert('{{%oauth_scopes}}', ['id'], [
['offline_access'],
['minecraft_server_session'],
['account_info'],
['account_email'],
]);
}
}