aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/db/migration')
-rw-r--r--phpBB/phpbb/db/migration/schema_generator.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/phpbb/db/migration/schema_generator.php b/phpBB/phpbb/db/migration/schema_generator.php
index 55ab4452ed..dc685bb161 100644
--- a/phpBB/phpbb/db/migration/schema_generator.php
+++ b/phpBB/phpbb/db/migration/schema_generator.php
@@ -79,14 +79,12 @@ class schema_generator
{
foreach ($migrations as $key => $migration_class)
{
- if (class_exists($migration_class))
+ // Unset classes that do not exist or do not extend the
+ // abstract class phpbb\db\migration\migration
+ if (\phpbb\db\migrator::is_migration($migration_class) === false)
{
- $reflector = new \ReflectionClass($migration_class);
- if (!$reflector->implementsInterface('\phpbb\db\migration\migration_interface') || !$reflector->isInstantiable())
- {
- unset($migrations[$key]);
- continue;
- }
+ unset($migrations[$key]);
+ continue;
}
$open_dependencies = array_diff($migration_class::depends_on(), $tree);