aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-10-13 16:01:00 -0700
committerNils Adermann <naderman@naderman.de>2013-10-13 16:01:00 -0700
commit40932c26eaa7cddd0731b136a77c9bad704b69e0 (patch)
tree35dc039190cbb9cc20bbc6577a303cd3ddc1d328 /phpBB/phpbb/db
parent5927f0dbf2cd6bfe2db19f5703703af43cea64c8 (diff)
parent9f1c6279882e34df5b328680029d16b7e91ec126 (diff)
downloadforums-40932c26eaa7cddd0731b136a77c9bad704b69e0.tar
forums-40932c26eaa7cddd0731b136a77c9bad704b69e0.tar.gz
forums-40932c26eaa7cddd0731b136a77c9bad704b69e0.tar.bz2
forums-40932c26eaa7cddd0731b136a77c9bad704b69e0.tar.xz
forums-40932c26eaa7cddd0731b136a77c9bad704b69e0.zip
Merge pull request #1772 from bantu/feature/plupload/integration
[ticket/10929] Integration of Plupload
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/alpha1.php1
-rw-r--r--phpBB/phpbb/db/migration/data/v310/plupload.php32
2 files changed, 33 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/alpha1.php b/phpBB/phpbb/db/migration/data/v310/alpha1.php
index bd4861b1f5..403e301e64 100644
--- a/phpBB/phpbb/db/migration/data/v310/alpha1.php
+++ b/phpBB/phpbb/db/migration/data/v310/alpha1.php
@@ -28,6 +28,7 @@ class alpha1 extends \phpbb\db\migration\migration
'\phpbb\db\migration\data\v310\namespaces',
'\phpbb\db\migration\data\v310\notifications_cron',
'\phpbb\db\migration\data\v310\notification_options_reconvert',
+ '\phpbb\db\migration\data\v310\plupload',
'\phpbb\db\migration\data\v310\signature_module_auth',
'\phpbb\db\migration\data\v310\softdelete_mcp_modules',
'\phpbb\db\migration\data\v310\teampage',
diff --git a/phpBB/phpbb/db/migration/data/v310/plupload.php b/phpBB/phpbb/db/migration/data/v310/plupload.php
new file mode 100644
index 0000000000..1787c6dafc
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v310/plupload.php
@@ -0,0 +1,32 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v310;
+
+class plupload extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ return isset($this->config['plupload_last_gc']) &&
+ isset($this->config['plupload_salt']);
+ }
+
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\310\dev');
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.add', array('plupload_last_gc', 0)),
+ array('config.add', array('plupload_salt', unique_id())),
+ );
+ }
+}