diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-10-01 11:07:43 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-10-01 11:07:43 +0100 |
commit | 57fc321c4df7c3151cc350abf3fb7e1cc4af1584 (patch) | |
tree | ff6a97fb813c4ce426963059f0686253ecd9fbf2 /phpBB/phpbb/db | |
parent | e362ff1f3ce4534a9bea7e82559146de10738d2a (diff) | |
parent | f1eda6868f069bcb680a6bb38247c4625c93cae2 (diff) | |
download | forums-57fc321c4df7c3151cc350abf3fb7e1cc4af1584.tar forums-57fc321c4df7c3151cc350abf3fb7e1cc4af1584.tar.gz forums-57fc321c4df7c3151cc350abf3fb7e1cc4af1584.tar.bz2 forums-57fc321c4df7c3151cc350abf3fb7e1cc4af1584.tar.xz forums-57fc321c4df7c3151cc350abf3fb7e1cc4af1584.zip |
Merge branch '3.1.x' into 3.2.x
Diffstat (limited to 'phpBB/phpbb/db')
-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', + ), + ), + ); + } +} |