aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorDaniel Sinn <daniel.p.sinn@gmail.com>2016-10-03 10:24:30 -0400
committerDaniel Sinn <daniel.p.sinn@gmail.com>2016-10-03 10:24:30 -0400
commit59b52d6312cd10631532f6d1dcdabef141081fdc (patch)
tree90e1a1a96aa94d7822e8bb501c3069453ece0f82 /phpBB/phpbb
parent32d569c59464a80eb8c78a98b1953de0aa1008d8 (diff)
parent85e4566223487899f3a2789983cb50e68296a982 (diff)
downloadforums-59b52d6312cd10631532f6d1dcdabef141081fdc.tar
forums-59b52d6312cd10631532f6d1dcdabef141081fdc.tar.gz
forums-59b52d6312cd10631532f6d1dcdabef141081fdc.tar.bz2
forums-59b52d6312cd10631532f6d1dcdabef141081fdc.tar.xz
forums-59b52d6312cd10631532f6d1dcdabef141081fdc.zip
[ticket/14804] Merge remote-tracking branch 'upstream/3.1.x' into ticket/14804
PHPBB3-14804
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/migration/data/v31x/add_log_time_index.php46
1 files changed, 46 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v31x/add_log_time_index.php b/phpBB/phpbb/db/migration/data/v31x/add_log_time_index.php
new file mode 100644
index 0000000000..f53eedcd49
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v31x/add_log_time_index.php
@@ -0,0 +1,46 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+namespace phpbb\db\migration\data\v31x;
+
+class add_log_time_index extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v31x\v319',
+ );
+ }
+
+ public function update_schema()
+ {
+ return array(
+ 'add_index' => array(
+ $this->table_prefix . 'log' => array(
+ 'log_time' => array('log_time'),
+ ),
+ ),
+ );
+ }
+
+ public function revert_schema()
+ {
+ return array(
+ 'drop_keys' => array(
+ $this->table_prefix . 'log' => array(
+ 'log_time',
+ ),
+ ),
+ );
+ }
+}