From fc72862ca4bb5c9f9b23867173543efb899de4db Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 27 Jan 2016 12:47:31 -0800 Subject: [ticket/14434] Do not include non-migrations in CLI list PHPBB3-14434 --- phpBB/phpbb/console/command/db/list_command.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'phpBB') diff --git a/phpBB/phpbb/console/command/db/list_command.php b/phpBB/phpbb/console/command/db/list_command.php index 708107b592..dfec5c7da2 100644 --- a/phpBB/phpbb/console/command/db/list_command.php +++ b/phpBB/phpbb/console/command/db/list_command.php @@ -39,6 +39,12 @@ class list_command extends \phpbb\console\command\db\migration_command foreach ($this->load_migrations() as $name) { + // Ignore non-migration files + if (\phpbb\db\migrator::is_migration($name) === false) + { + continue; + } + if ($this->migrator->migration_state($name) !== false) { $installed[] = $name; -- cgit v1.2.1