MySqlSchemaManager::createSchema()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 6
nc 2
nop 0
1
<?php
2
3
namespace Rey\BitrixMigrations\Driver\Schema;
4
5
use Doctrine\DBAL\Schema\MySqlSchemaManager as DoctrineMySqlSchemaManager;
6
use Doctrine\DBAL\Schema\Schema;
7
8
/**
9
 * Надстройка над стандартным DBAL MySqlSchemaManager для ускорения работы
10
 * за счет отключения построения всей схемы бд
11
 */
12
class MySqlSchemaManager extends DoctrineMySqlSchemaManager
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17
    public function createSchema()
18
    {
19
        $sequences = array();
20
21
        if ($this->_platform->supportsSequences()) {
22
            $sequences = $this->listSequences();
23
        }
24
25
        $tables = array();
26
27
        return new Schema($tables, $sequences, $this->createSchemaConfig());
28
    }
29
}
30