From f554d321b2ab3abaca62c65bb79e5bb07a788f83 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 17 Oct 2008 03:51:03 +0000 Subject: [PATCH] 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 --- cake/console/libs/schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/console/libs/schema.php b/cake/console/libs/schema.php index 6ab7ba029..402fa8970 100644 --- a/cake/console/libs/schema.php +++ b/cake/console/libs/schema.php @@ -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++; } }