mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixing schema file regexp, to ignore .sql files. Fixes #5616
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7759 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e3fb56f6be
commit
f554d321b2
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class SchemaShell extends Shell {
|
|||
$count = 1;
|
||||
if (!empty($result[1])) {
|
||||
foreach ($result[1] as $file) {
|
||||
if (preg_match('/schema/', $file)) {
|
||||
if (preg_match('/schema(?:[_\d]*)?\.php/', $file)) {
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue