diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2016-09-25 18:41:18 +0200 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2016-09-25 19:51:37 +0200 |
commit | ec24f739e88d05d2c8a4ebd69209aeb6dbb09119 (patch) | |
tree | b4d6770073f190c4ae1c5cdd07e4d19a80753969 /phpBB/phpbb/db/migration/data/v31x | |
parent | 51d830a6d332b4e37d90ee4f8455a6b3a47f9591 (diff) | |
download | forums-ec24f739e88d05d2c8a4ebd69209aeb6dbb09119.tar forums-ec24f739e88d05d2c8a4ebd69209aeb6dbb09119.tar.gz forums-ec24f739e88d05d2c8a4ebd69209aeb6dbb09119.tar.bz2 forums-ec24f739e88d05d2c8a4ebd69209aeb6dbb09119.tar.xz forums-ec24f739e88d05d2c8a4ebd69209aeb6dbb09119.zip |
[ticket/8301] Add log_time index
PHPBB3-8301
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v31x')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v31x/add_log_time_index.php | 46 |
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', + ), + ), + ); + } +} |