1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-21 08:00:46 +01:00

[ticket/14831] Make sure migrations always start with backslash

The migration system expects every migration to start with a backslash.
If depends on definitions do not supply that leading backslash, we should
make sure it's added manually before calling the depends on migration.

PHPBB3-14831
This commit is contained in:
Marc Alexander 2016-10-22 19:19:36 +02:00
parent 05d0879795
commit 8b8f693d00
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

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