diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-10-22 19:19:36 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-10-22 19:19:36 +0200 |
commit | 8b8f693d00ebbf78066467497b8866c751e6760f (patch) | |
tree | 4a055046f8abebe3733ebd2d55f8d39ca6999360 /phpBB | |
parent | 05d0879795236e5fc4ae07145c0d7bcab05e5c15 (diff) | |
download | forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar.gz forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar.bz2 forums-8b8f693d00ebbf78066467497b8866c751e6760f.tar.xz forums-8b8f693d00ebbf78066467497b8866c751e6760f.zip |
[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
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/db/migrator.php | 3 |
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); |