mirror of
https://github.com/elyby/accounts.git
synced 2024-12-29 00:20:22 +05:30
19 lines
396 B
PHP
19 lines
396 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m160803_185857_account_permissions extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->batchInsert('{{%oauth_scopes}}', ['id'], [
|
|
['account_info'],
|
|
['account_email'],
|
|
]);
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->delete('{{%oauth_scopes}}', ['id' => ['account_info', 'account_email']]);
|
|
}
|
|
|
|
}
|