1
0
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:
Matt Friedman
2016-01-28 11:22:30 -08:00
parent fb1acb0ef4
commit 27027deb9c
6 changed files with 26 additions and 38 deletions

View File

@@ -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;

View File

@@ -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()