diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-10-01 11:07:40 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-10-01 11:07:40 +0100 |
commit | f1eda6868f069bcb680a6bb38247c4625c93cae2 (patch) | |
tree | d54e9ee07719f2de8ceb86b2a64b1f9f05d379c5 | |
parent | 6972d06f5921c9fab8e469139ed5646bb495eb8e (diff) | |
parent | ec24f739e88d05d2c8a4ebd69209aeb6dbb09119 (diff) | |
download | forums-f1eda6868f069bcb680a6bb38247c4625c93cae2.tar forums-f1eda6868f069bcb680a6bb38247c4625c93cae2.tar.gz forums-f1eda6868f069bcb680a6bb38247c4625c93cae2.tar.bz2 forums-f1eda6868f069bcb680a6bb38247c4625c93cae2.tar.xz forums-f1eda6868f069bcb680a6bb38247c4625c93cae2.zip |
Merge pull request #4465 from Senky/ticket/8301
[ticket/8301] Add log_time index
-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', + ), + ), + ); + } +} |