mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/14434] Do not include non-migrations in CLI list
PHPBB3-14434
This commit is contained in:
parent
996441a1da
commit
fc72862ca4
1 changed files with 6 additions and 0 deletions
|
@ -39,6 +39,12 @@ class list_command extends \phpbb\console\command\db\migration_command
|
||||||
|
|
||||||
foreach ($this->load_migrations() as $name)
|
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)
|
if ($this->migrator->migration_state($name) !== false)
|
||||||
{
|
{
|
||||||
$installed[] = $name;
|
$installed[] = $name;
|
||||||
|
|
Loading…
Add table
Reference in a new issue