mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 10:42:16 +05:30
26 lines
564 B
PHP
26 lines
564 B
PHP
|
<?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'],
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
}
|