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:
mark_story 2008-10-17 03:51:03 +00:00
parent e3fb56f6be
commit f554d321b2

View file

@ -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++;
}
}