diff options
author | Rubén Calvo <rubencm@gmail.com> | 2017-10-31 14:37:36 +0100 |
---|---|---|
committer | Rubén Calvo <rubencm@gmail.com> | 2017-10-31 14:37:36 +0100 |
commit | 4bf0f4a50f34e00fb80299119f98c23ee426dc4d (patch) | |
tree | 3d03c0c9db2d23b7a1e2c25bc0fb007b93c426a9 /phpBB/phpbb | |
parent | a0ba57dc4f39804cd52f69b6342c1e2f5f1acea6 (diff) | |
download | forums-4bf0f4a50f34e00fb80299119f98c23ee426dc4d.tar forums-4bf0f4a50f34e00fb80299119f98c23ee426dc4d.tar.gz forums-4bf0f4a50f34e00fb80299119f98c23ee426dc4d.tar.bz2 forums-4bf0f4a50f34e00fb80299119f98c23ee426dc4d.tar.xz forums-4bf0f4a50f34e00fb80299119f98c23ee426dc4d.zip |
[ticket/15171] Add migration
PHPBB3-15171
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/update_prosilver_bitfield.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/update_prosilver_bitfield.php b/phpBB/phpbb/db/migration/data/v32x/update_prosilver_bitfield.php new file mode 100644 index 0000000000..6e51a01834 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v32x/update_prosilver_bitfield.php @@ -0,0 +1,39 @@ +<?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 update_prosilver_bitfield extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v32x\v321', + ); + } + + public function update_data() + { + return array( + array('custom', array(array($this, 'update_bbcode_bitfield'))), + ); + } + + public function update_bbcode_bitfield() + { + $sql = 'UPDATE ' . STYLES_TABLE . " + SET bbcode_bitfield = '//g=' + WHERE style_path = 'prosilver'"; + $this->sql_query($sql); + } +} |