1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15274] Allow "custom" migrations to use parameters

Add the possibility to have custom migrations with parameters,
allowing the use of a single function for several uses.

PHPBB3-15274
This commit is contained in:
javiexin
2017-07-15 18:39:39 +02:00
parent 50d2e337b0
commit 563a6680eb
4 changed files with 137 additions and 1 deletions

View File

@@ -694,7 +694,7 @@ class migrator
{
return array(
$parameters[0],
array($last_result),
isset($parameters[1]) ? array_merge($parameters[1], array($last_result)) : array($last_result),
);
}
break;