Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Fix "Migration files are not filtered by PHP extension in file name." https://github.com/nixsolutions/zfcore/issues/10 #11

Merged
merged 1 commit into from
Jul 11, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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