aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migrator.php
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2014-04-23 19:41:55 +0200
committerNicofuma <github@nicofuma.fr>2014-04-26 12:15:19 +0200
commit595f831589acc87944a0439776abb8a953f1c70c (patch)
treeef3c75e8714f7510d86e194c386bfa7dcfb37e3f /phpBB/phpbb/db/migrator.php
parent9eedd45aac7670c1fdd4076755b1f807d2587d3d (diff)
downloadforums-595f831589acc87944a0439776abb8a953f1c70c.tar
forums-595f831589acc87944a0439776abb8a953f1c70c.tar.gz
forums-595f831589acc87944a0439776abb8a953f1c70c.tar.bz2
forums-595f831589acc87944a0439776abb8a953f1c70c.tar.xz
forums-595f831589acc87944a0439776abb8a953f1c70c.zip
[ticket/12432] Migrator should not revert custom functions
https://tracker.phpbb.com/browse/PHPBB3-12432 PHPBB3-12432
Diffstat (limited to 'phpBB/phpbb/db/migrator.php')
-rw-r--r--phpBB/phpbb/db/migrator.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index d3bbbc63c5..5ad8563e5c 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -509,10 +509,17 @@ class migrator
throw new \phpbb\db\migration\exception('MIGRATION_INVALID_DATA_CUSTOM_NOT_CALLABLE', $step);
}
- return array(
- $parameters[0],
- array($last_result),
- );
+ if ($reverse)
+ {
+ return false;
+ }
+ else
+ {
+ return array(
+ $parameters[0],
+ array($last_result),
+ );
+ }
break;
default: