Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function dropDatabase() |
||
19 | { |
||
20 | $iterator = $this->getDbDriver()->getIterator(" |
||
21 | select |
||
22 | 'drop table ' || name || ';' as command |
||
23 | from sqlite_master |
||
24 | where type = 'table' |
||
25 | and name <> 'sqlite_sequence'; |
||
26 | "); |
||
27 | |||
28 | foreach ($iterator as $row) { |
||
29 | $this->getDbDriver()->execute($row->get('command')); |
||
30 | } |
||
31 | } |
||
32 | |||
53 |