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

Remove references in migration tool.

PHPBB3-15274
This commit is contained in:
javiexin 2017-07-16 11:58:54 +02:00 committed by Marc Alexander
parent 5c001df380
commit 5a0c9763d1
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
4 changed files with 6 additions and 6 deletions

View file

@ -23,11 +23,11 @@ class phpbb_dbal_migration_if extends \phpbb\db\migration\migration
return array( return array(
array('if', array( array('if', array(
true, true,
array('custom', array(array(&$this, 'test_true'))), array('custom', array(array($this, 'test_true'))),
)), )),
array('if', array( array('if', array(
false, false,
array('custom', array(array(&$this, 'test_false'))), array('custom', array(array($this, 'test_false'))),
)), )),
); );
} }

View file

@ -23,11 +23,11 @@ class phpbb_dbal_migration_if_params extends \phpbb\db\migration\migration
return array( return array(
array('if', array( array('if', array(
true, true,
array('custom', array(array(&$this, 'test'), array('true'))), array('custom', array(array($this, 'test'), array('true'))),
)), )),
array('if', array( array('if', array(
false, false,
array('custom', array(array(&$this, 'test'), array('false'))), array('custom', array(array($this, 'test'), array('false'))),
)), )),
); );
} }

View file

@ -21,7 +21,7 @@ class phpbb_dbal_migration_recall extends \phpbb\db\migration\migration
function update_data() function update_data()
{ {
return array( return array(
array('custom', array(array(&$this, 'test_call'))), array('custom', array(array($this, 'test_call'))),
); );
} }

View file

@ -21,7 +21,7 @@ class phpbb_dbal_migration_recall_params extends \phpbb\db\migration\migration
function update_data() function update_data()
{ {
return array( return array(
array('custom', array(array(&$this, 'test_call'), array(5))), array('custom', array(array($this, 'test_call'), array(5))),
); );
} }