aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-09 18:11:41 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-09 18:11:41 +0100
commit3350df131fec7a2a558ec0d1c0ef714fbfa4fa35 (patch)
treecd23a49a49e9572f1faebac9f3036af1f541e20b /phpBB/phpbb/db/migration/data
parent9ce8b6289487431b42469e0971369d6067c65c96 (diff)
parent54b5ee580627e0515f867bdfa2854d862ff06d62 (diff)
downloadforums-3350df131fec7a2a558ec0d1c0ef714fbfa4fa35.tar
forums-3350df131fec7a2a558ec0d1c0ef714fbfa4fa35.tar.gz
forums-3350df131fec7a2a558ec0d1c0ef714fbfa4fa35.tar.bz2
forums-3350df131fec7a2a558ec0d1c0ef714fbfa4fa35.tar.xz
forums-3350df131fec7a2a558ec0d1c0ef714fbfa4fa35.zip
Merge pull request #3227 from prototech/ticket/13366
[ticket/13366] Ensure plupload_last_gc config entry is dynamic.
Diffstat (limited to 'phpBB/phpbb/db/migration/data')
-rw-r--r--phpBB/phpbb/db/migration/data/v31x/plupload_last_gc_dynamic.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v31x/plupload_last_gc_dynamic.php b/phpBB/phpbb/db/migration/data/v31x/plupload_last_gc_dynamic.php
new file mode 100644
index 0000000000..0783d707c5
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v31x/plupload_last_gc_dynamic.php
@@ -0,0 +1,31 @@
+<?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 plupload_last_gc_dynamic extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v31x\v312');
+ }
+
+ public function update_data()
+ {
+ return array(
+ // Make plupload_last_gc dynamic.
+ array('config.remove', array('plupload_last_gc')),
+ array('config.add', array('plupload_last_gc', 0, 1)),
+ );
+ }
+}