diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-01-08 10:48:30 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-01-08 10:48:30 +0100 |
| commit | 40985de245d7eb5426f8379d93283331d1eab65a (patch) | |
| tree | 0d96215cef6252c9da34d9b34dea22dce500b05f /phpBB/phpbb/db | |
| parent | 385feb0a5d21676786884aab0956976505efdf2a (diff) | |
| download | forums-40985de245d7eb5426f8379d93283331d1eab65a.tar forums-40985de245d7eb5426f8379d93283331d1eab65a.tar.gz forums-40985de245d7eb5426f8379d93283331d1eab65a.tar.bz2 forums-40985de245d7eb5426f8379d93283331d1eab65a.tar.xz forums-40985de245d7eb5426f8379d93283331d1eab65a.zip | |
[ticket/14967] Add cookie notice migration fixing invalid previous one
PHPBB3-14967
Diffstat (limited to 'phpBB/phpbb/db')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/cookie_notice_p2.php | 36 |
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')), + ); + } +} |
