mirror of
https://github.com/elyby/accounts.git
synced 2024-07-01 04:33:33 +05:30
Добавлен client_credentials grant для oAuth Рефакторинг структуры OauthScopes чтобы можно было разделить владельца прав на пользовательские и общие (машинные) Исправлена стилистика кода, внедряются фишки PHP 7.1
16 lines
371 B
PHP
16 lines
371 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m161228_101022_oauth_clients_allow_null_redirect_uri extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->alterColumn('{{%oauth_clients}}', 'redirect_uri', $this->string());
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->alterColumn('{{%oauth_clients}}', 'redirect_uri', $this->string()->notNull());
|
|
}
|
|
|
|
}
|