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:
parent
05d0879795
commit
8b8f693d00
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user