mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
[ticket/14434] Check migrations in the database updater task
PHPBB3-14434
This commit is contained in:
parent
fc72862ca4
commit
fb1acb0ef4
@ -139,6 +139,15 @@ class update extends task_base
|
||||
->extension_directory('/migrations')
|
||||
->get_classes();
|
||||
|
||||
// Unset classes that are not a valid migration
|
||||
foreach ($migrations as $key => $migration_class)
|
||||
{
|
||||
if (\phpbb\db\migrator::is_migration($migration_class) === false)
|
||||
{
|
||||
unset($migrations[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
$this->migrator->set_migrations($migrations);
|
||||
$migration_count = count($migrations);
|
||||
$this->iohandler->set_task_count($migration_count, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user