aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-01-08 18:06:17 +0100
committerTristan Darricau <github@nicofuma.fr>2017-01-08 18:06:17 +0100
commit4d5140abaf2e580ef62925dd60e732253f43af74 (patch)
tree0d96215cef6252c9da34d9b34dea22dce500b05f
parent385feb0a5d21676786884aab0956976505efdf2a (diff)
parent40985de245d7eb5426f8379d93283331d1eab65a (diff)
downloadforums-4d5140abaf2e580ef62925dd60e732253f43af74.tar
forums-4d5140abaf2e580ef62925dd60e732253f43af74.tar.gz
forums-4d5140abaf2e580ef62925dd60e732253f43af74.tar.bz2
forums-4d5140abaf2e580ef62925dd60e732253f43af74.tar.xz
forums-4d5140abaf2e580ef62925dd60e732253f43af74.zip
Merge pull request #4621 from marc1706/ticket/14967
[ticket/14967] Add cookie notice migration fixing invalid previous one * marc1706/ticket/14967: [ticket/14967] Add cookie notice migration fixing invalid previous one
-rw-r--r--phpBB/phpbb/db/migration/data/v32x/cookie_notice_p2.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/cookie_notice_p2.php b/phpBB/phpbb/db/migration/data/v32x/cookie_notice_p2.php
new file mode 100644
index 0000000000..1a83175705
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v32x/cookie_notice_p2.php
@@ -0,0 +1,36 @@
+<?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\v32x;
+
+class cookie_notice_p2 extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array(
+ '\phpbb\db\migration\data\v320\v320',
+ );
+ }
+
+ public function effectively_installed()
+ {
+ return isset($this->config['cookie_notice']);
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.add', array('cookie_notice', '0')),
+ );
+ }
+}