Skip to content

Commit

Permalink
drop sequence update for truncating sqlite tables
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Apr 25, 2017
1 parent 956a0e8 commit f394d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/sql/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function truncateTable($name, $exec = true) {
'TRUNCATE TABLE '.$this->db->quotekey($name).';',
'sqlite2?' => array(
'DELETE FROM '.$this->db->quotekey($name).';',
'UPDATE SQLITE_SEQUENCE SET seq = 0 WHERE name = '.$this->db->quotekey($name).';',
// 'UPDATE SQLITE_SEQUENCE SET seq = 0 WHERE name = '.$this->db->quotekey($name).';',
),
);
$query = $this->findQuery($cmd);
Expand Down

0 comments on commit f394d52

Please sign in to comment.