mirror of
https://github.com/elyby/accounts.git
synced 2024-11-09 23:12:20 +05:30
19 lines
360 B
PHP
19 lines
360 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m160222_204006_add_init_scopes extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->batchInsert('{{%oauth_scopes}}', ['id'], [
|
|
['offline_access'],
|
|
['minecraft_server_session'],
|
|
]);
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->delete('{{%oauth_scopes}}');
|
|
}
|
|
|
|
}
|