aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-01-27 12:47:31 -0800
committerMatt Friedman <maf675@gmail.com>2016-01-27 12:47:31 -0800
commitfc72862ca4bb5c9f9b23867173543efb899de4db (patch)
treea82e65593a1f71fb4042a58dda297cce4479de55
parent996441a1da472b587d367994cb6b6dcf711b027c (diff)
downloadforums-fc72862ca4bb5c9f9b23867173543efb899de4db.tar
forums-fc72862ca4bb5c9f9b23867173543efb899de4db.tar.gz
forums-fc72862ca4bb5c9f9b23867173543efb899de4db.tar.bz2
forums-fc72862ca4bb5c9f9b23867173543efb899de4db.tar.xz
forums-fc72862ca4bb5c9f9b23867173543efb899de4db.zip
[ticket/14434] Do not include non-migrations in CLI list
PHPBB3-14434
-rw-r--r--phpBB/phpbb/console/command/db/list_command.php6
1 files changed, 6 insertions, 0 deletions
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;