diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-09 11:04:13 +0200 |
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-09-09 11:04:13 +0200 |
| commit | 542d75b3a918a5782a1682003fdc4e1f004afc47 (patch) | |
| tree | 2284f3f68e39e7f5630fefc6d4879966b2e6e681 /phpBB/phpbb/db | |
| parent | b83ce0a702583aec717a7be6363b950b63a45f45 (diff) | |
| parent | 1fbdf615f2aa9c9be4816a9d927d36f88b68f20d (diff) | |
| download | forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.gz forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.bz2 forums-542d75b3a918a5782a1682003fdc4e1f004afc47.tar.xz forums-542d75b3a918a5782a1682003fdc4e1f004afc47.zip | |
Merge pull request #3870 from Zoddo/ticket/9485
[ticket/9485] Add a "View post" link in the moderation logs
* Zoddo/ticket/9485:
[ticket/9485] Fix tests
[ticket/9485] Add post_id to relevant $phpbb_log->add()
[ticket/9485] Add a "View post" link in the moderation logs
Diffstat (limited to 'phpBB/phpbb/db')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v320/log_post_id.php | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v320/log_post_id.php b/phpBB/phpbb/db/migration/data/v320/log_post_id.php new file mode 100644 index 0000000000..0f155d543c --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v320/log_post_id.php @@ -0,0 +1,44 @@ +<?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\v320; + +class log_post_id extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array('\phpbb\db\migration\data\v310\dev'); + } + + public function update_schema() + { + return array( + 'add_columns' => array( + $this->table_prefix . 'log' => array( + 'post_id' => array('UINT', 0, 'after' => 'topic_id'), + ), + ), + ); + } + + public function revert_schema() + { + return array( + 'drop_columns' => array( + $this->table_prefix . 'log' => array( + 'post_id', + ), + ), + ); + } +} |
