Skip to content

Commit

Permalink
Fix "Migration files are not filtered by PHP extension in file name." n…
Browse files Browse the repository at this point in the history
  • Loading branch information
naxel committed Jul 11, 2013
1 parent cb26d37 commit dd14242
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Core/Migration/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ public function getExistsMigrations($module = null)

// foreach loop for $filesDirty array
foreach ($filesDirty as $file) {
if (preg_match('/\d{8}_\d{6}_\d{2}\.php/', $file)
|| preg_match('/\d{8}_\d{6}_\d{2}_[A-z0-9]*\.php/', $file)) {
if (preg_match('/\d{8}_\d{6}_\d{2}\.php$/', $file)
|| preg_match('/\d{8}_\d{6}_\d{2}_[A-z0-9]*\.php$/', $file)) {
array_push($migrations, substr($file, 0, -4));
}
}
Expand Down

0 comments on commit dd14242

Please sign in to comment.