Skip to content

Commit

Permalink
Don't include sqlite_sequence in table listings.
Browse files Browse the repository at this point in the history
Applications rarely need access to sqlite_sequence so exclude it from
the table listings.
  • Loading branch information
markstory committed Mar 18, 2014
1 parent e1c702d commit 2e15e6c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Database/Schema/SqliteSchema.php
Expand Up @@ -91,7 +91,11 @@ protected function _convertColumn($column) {
*
*/
public function listTablesSql($config) {
return ['SELECT name FROM sqlite_master WHERE type="table" ORDER BY name', []];
return [
'SELECT name FROM sqlite_master WHERE type="table" ' .
'AND name != "sqlite_sequence" ORDER BY name',
[]
];
}

/**
Expand Down

0 comments on commit 2e15e6c

Please sign in to comment.