Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function up(Schema $schema) |
||
17 | { |
||
18 | if ($this->platform->getName() == 'postgresql') { |
||
19 | $qb = $this->connection->createQueryBuilder(); |
||
20 | $max = $qb->select('max(id) + 1') |
||
21 | ->from('dtb_help') |
||
22 | ->execute() |
||
23 | ->fetchColumn(); |
||
24 | $this->addSql("SELECT setval('dtb_help_id_seq', $max);"); |
||
25 | } |
||
26 | } |
||
27 | |||
37 |