diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2016-10-02 17:14:49 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2016-10-02 17:14:49 +0200 |
| commit | cdaed8dabfbacd9db74cb302aaaf3efc756f02b8 (patch) | |
| tree | 9907e14040eb17d94530ce2f721ef7b2f6007a0f /phpBB/phpbb | |
| parent | 2fd2fb94cf4577b9a48c9d87cd0c14c852667a9f (diff) | |
| parent | 047c7375a5fa9f94afb2d490d761fb5ae434988f (diff) | |
| download | forums-cdaed8dabfbacd9db74cb302aaaf3efc756f02b8.tar forums-cdaed8dabfbacd9db74cb302aaaf3efc756f02b8.tar.gz forums-cdaed8dabfbacd9db74cb302aaaf3efc756f02b8.tar.bz2 forums-cdaed8dabfbacd9db74cb302aaaf3efc756f02b8.tar.xz forums-cdaed8dabfbacd9db74cb302aaaf3efc756f02b8.zip | |
Merge pull request #4475 from marc1706/ticket/14805
[ticket/14805] Ignore platform requirements while building packages
* marc1706/ticket/14805:
[ticket/14805] Ignore platform requirements while building packages
[ticket/8301] Add log_time index
Diffstat (limited to 'phpBB/phpbb')
| -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', + ), + ), + ); + } +} |
