mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11882] If dependency is incorrect/unfulfillable, throw an error
PHPBB3-11882
This commit is contained in:
parent
cab84dd9c5
commit
5bd7f1bd36
1 changed files with 5 additions and 0 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Reference in a new issue