mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 07:09:46 +05:30
45101d6453
Reworked oauth_sessions table. Added extension to use MariaDB's JSON columns. Rewritten tests for authorization_code grant for client side. Deprecate some old shit. [skip ci]
21 lines
435 B
PHP
21 lines
435 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace common\db\mysql;
|
|
|
|
use SamIT\Yii2\MariaDb\JsonExpressionBuilder;
|
|
use SamIT\Yii2\MariaDb\Schema as MysqlSchema;
|
|
|
|
class Schema extends MysqlSchema {
|
|
|
|
public function createQueryBuilder() {
|
|
$result = new QueryBuilder($this->db);
|
|
$result->setExpressionBuilders([
|
|
'yii\db\JsonExpression' => JsonExpressionBuilder::class,
|
|
]);
|
|
|
|
return $result;
|
|
}
|
|
|
|
}
|