From 86945bdf84086c2662754d4c7a79508fa9f89a9b Mon Sep 17 00:00:00 2001 From: javiexin Date: Mon, 1 Jun 2015 19:50:32 +0200 Subject: [PATCH] [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 --- phpBB/phpbb/db/tools.php | 5 +++++ 1 file changed, 5 insertions(+) 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':