mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14434] Refactored to check migrations when setting them
PHPBB3-14434
This commit is contained in:
@@ -39,12 +39,6 @@ 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;
|
||||
|
@@ -45,7 +45,7 @@ abstract class migration_command extends \phpbb\console\command\command
|
||||
|
||||
$this->migrator->set_migrations($migrations);
|
||||
|
||||
return $migrations;
|
||||
return $this->migrator->get_migrations();
|
||||
}
|
||||
|
||||
protected function finalise_update()
|
||||
|
Reference in New Issue
Block a user