aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/phpbb/db/migrator.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index 4c4c0a8672..1f5498c878 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -264,6 +264,9 @@ class migrator
foreach ($state['migration_depends_on'] as $depend)
{
+ // Make sure migration starts with backslash
+ $depend = $depend[0] == '\\' ? $depend : '\\' . $depend;
+
if ($this->unfulfillable($depend) !== false)
{
throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $depend);