diff options
| author | Nathan <nathaniel.guse@gmail.com> | 2013-10-02 14:21:50 -0500 |
|---|---|---|
| committer | Nathan <nathaniel.guse@gmail.com> | 2013-10-02 14:21:50 -0500 |
| commit | 5bd7f1bd36a156767d4654d137d9705a171ae8ff (patch) | |
| tree | 0ee406bae5c034787899bb80dedf339953badea2 | |
| parent | cab84dd9c5af88473239a802d4ce455a2de6f328 (diff) | |
| download | forums-5bd7f1bd36a156767d4654d137d9705a171ae8ff.tar forums-5bd7f1bd36a156767d4654d137d9705a171ae8ff.tar.gz forums-5bd7f1bd36a156767d4654d137d9705a171ae8ff.tar.bz2 forums-5bd7f1bd36a156767d4654d137d9705a171ae8ff.tar.xz forums-5bd7f1bd36a156767d4654d137d9705a171ae8ff.zip | |
[ticket/11882] If dependency is incorrect/unfulfillable, throw an error
PHPBB3-11882
| -rw-r--r-- | phpBB/phpbb/db/migrator.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index 7efb23a230..9879ff2a85 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -192,6 +192,11 @@ class migrator foreach ($state['migration_depends_on'] as $depend) { + if ($this->unfulfillable($depend) !== false) + { + throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $depend); + } + if (!isset($this->migration_state[$depend]) || !$this->migration_state[$depend]['migration_schema_done'] || !$this->migration_state[$depend]['migration_data_done']) |
