mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
Merge pull request #6200 from Noxwizard/ticket/16767
[ticket/16767] Report missing migration instead of dependency
This commit is contained in:
commit
db9f54bee5
1 changed files with 3 additions and 2 deletions
|
@ -339,9 +339,10 @@ class migrator
|
||||||
$depend = $this->get_valid_name($depend);
|
$depend = $this->get_valid_name($depend);
|
||||||
|
|
||||||
// Test all possible namings before throwing exception
|
// Test all possible namings before throwing exception
|
||||||
if ($this->unfulfillable($depend) !== false)
|
$missing = $this->unfulfillable($depend);
|
||||||
|
if ($missing !== false)
|
||||||
{
|
{
|
||||||
throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $depend);
|
throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $missing);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($this->migration_state[$depend]) ||
|
if (!isset($this->migration_state[$depend]) ||
|
||||||
|
|
Loading…
Add table
Reference in a new issue