mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 07:30:18 +05:30
Merge branch 'develop'
This commit is contained in:
commit
0c4c90336a
@ -52,7 +52,7 @@ class SessionStorage extends AbstractStorage implements SessionInterface {
|
||||
->andWhere([
|
||||
'client_id' => $clientId,
|
||||
'owner_type' => $ownerType,
|
||||
'owner_id' => $ownerId,
|
||||
'owner_id' => (string)$ownerId, // Переводим в строку, чтобы работали индексы, т.к. поле varchar
|
||||
])->scalar();
|
||||
|
||||
if ($sessionId === false) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
return [
|
||||
'version' => '1.1.11',
|
||||
'version' => '1.1.12',
|
||||
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
|
||||
'components' => [
|
||||
'cache' => [
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use console\db\Migration;
|
||||
|
||||
class m170415_195802_oauth_sessions_owner_id_index extends Migration {
|
||||
|
||||
public function safeUp() {
|
||||
$this->createIndex('owner_id', '{{%oauth_sessions}}', 'owner_id');
|
||||
}
|
||||
|
||||
public function safeDown() {
|
||||
$this->dropIndex('owner_id', '{{%oauth_sessions}}');
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user