Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
check for .sql extension when fetching schema objects from disk
Browse files Browse the repository at this point in the history
  • Loading branch information
victorstanciu committed Nov 17, 2012
1 parent 0de9ec7 commit 988d865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DBV.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ protected function _getDiskSchema()
$return = array();

foreach (new DirectoryIterator(DBV_SCHEMA_PATH) as $file) {
if ($file->isFile()) {
if ($file->isFile() && pathinfo($file->getFilename(), PATHINFO_EXTENSION) == 'sql') {
$return[] = pathinfo($file->getFilename(), PATHINFO_FILENAME);
}
}
Expand Down

0 comments on commit 988d865

Please sign in to comment.