mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-13 20:28:44 +01:00
[ticket/15274] Allow "custom" migrations to use parameters
Remove references in migration tool. PHPBB3-15274
This commit is contained in:
parent
5c001df380
commit
5a0c9763d1
@ -23,11 +23,11 @@ class phpbb_dbal_migration_if extends \phpbb\db\migration\migration
|
||||
return array(
|
||||
array('if', array(
|
||||
true,
|
||||
array('custom', array(array(&$this, 'test_true'))),
|
||||
array('custom', array(array($this, 'test_true'))),
|
||||
)),
|
||||
array('if', array(
|
||||
false,
|
||||
array('custom', array(array(&$this, 'test_false'))),
|
||||
array('custom', array(array($this, 'test_false'))),
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
@ -23,11 +23,11 @@ class phpbb_dbal_migration_if_params extends \phpbb\db\migration\migration
|
||||
return array(
|
||||
array('if', array(
|
||||
true,
|
||||
array('custom', array(array(&$this, 'test'), array('true'))),
|
||||
array('custom', array(array($this, 'test'), array('true'))),
|
||||
)),
|
||||
array('if', array(
|
||||
false,
|
||||
array('custom', array(array(&$this, 'test'), array('false'))),
|
||||
array('custom', array(array($this, 'test'), array('false'))),
|
||||
)),
|
||||
);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ class phpbb_dbal_migration_recall extends \phpbb\db\migration\migration
|
||||
function update_data()
|
||||
{
|
||||
return array(
|
||||
array('custom', array(array(&$this, 'test_call'))),
|
||||
array('custom', array(array($this, 'test_call'))),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ class phpbb_dbal_migration_recall_params extends \phpbb\db\migration\migration
|
||||
function update_data()
|
||||
{
|
||||
return array(
|
||||
array('custom', array(array(&$this, 'test_call'), array(5))),
|
||||
array('custom', array(array($this, 'test_call'), array(5))),
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user