mirror of
https://github.com/elyby/accounts.git
synced 2024-11-09 15:02:19 +05:30
22 lines
478 B
PHP
22 lines
478 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace common\db\mysql;
|
|
|
|
use SamIT\Yii2\MariaDb\JsonExpressionBuilder;
|
|
use SamIT\Yii2\MariaDb\Schema as MariaDbSchema;
|
|
use yii\db\JsonExpression;
|
|
|
|
class Schema extends MariaDbSchema {
|
|
|
|
public function createQueryBuilder(): QueryBuilder {
|
|
$result = new QueryBuilder($this->db);
|
|
$result->setExpressionBuilders([
|
|
JsonExpression::class => JsonExpressionBuilder::class,
|
|
]);
|
|
|
|
return $result;
|
|
}
|
|
|
|
}
|