aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorjaviexin <javiexin@gmail.com>2015-06-01 19:50:32 +0200
committerjaviexin <javiexin@gmail.com>2015-06-01 19:50:32 +0200
commit86945bdf84086c2662754d4c7a79508fa9f89a9b (patch)
tree7ff10f3959dc174b49906919fbd0919d6ae99b28 /phpBB/phpbb/db
parent6322970766bd9fa78327fa2ca6a6a43d73b680ee (diff)
downloadforums-86945bdf84086c2662754d4c7a79508fa9f89a9b.tar
forums-86945bdf84086c2662754d4c7a79508fa9f89a9b.tar.gz
forums-86945bdf84086c2662754d4c7a79508fa9f89a9b.tar.bz2
forums-86945bdf84086c2662754d4c7a79508fa9f89a9b.tar.xz
forums-86945bdf84086c2662754d4c7a79508fa9f89a9b.zip
[ticket/13908] "After" clause in migration not working
In a migration file, if you try to add a column to a table and specify the order, by specifying an "after" clause, it is not used at all, even for databases that support it (like mysql). This fixes the issue, for mysql databases. PHPBB3-13908
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/tools.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
index 775deccc30..6f8cc504ff 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -1533,6 +1533,11 @@ class tools
}
}
+ if (isset($column_data['after']))
+ {
+ $return_array['after'] = $column_data['after'];
+ }
+
break;
case 'oracle':