From c93381ff046de3352e4bceb7c5e5d161fa2635be Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 19 Jan 2022 22:09:33 +0100 Subject: [PATCH] [prep-release-3.3.6] Add migration for 3.3.6-RC1 --- build/build.xml | 2 +- phpBB/includes/constants.php | 2 +- phpBB/install/phpbbcli.php | 2 +- phpBB/install/schemas/schema_data.sql | 2 +- .../phpbb/db/migration/data/v33x/v336rc1.php | 36 +++++++++++++++++++ 5 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 phpBB/phpbb/db/migration/data/v33x/v336rc1.php diff --git a/build/build.xml b/build/build.xml index db9b5f1d12..5ee64f8823 100644 --- a/build/build.xml +++ b/build/build.xml @@ -2,7 +2,7 @@ - + diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php index 36b46c2b76..c4ab50bef6 100644 --- a/phpBB/includes/constants.php +++ b/phpBB/includes/constants.php @@ -28,7 +28,7 @@ if (!defined('IN_PHPBB')) */ // phpBB Version -@define('PHPBB_VERSION', '3.3.6-dev'); +@define('PHPBB_VERSION', '3.3.6-RC1'); // QA-related // define('PHPBB_QA', 1); diff --git a/phpBB/install/phpbbcli.php b/phpBB/install/phpbbcli.php index ac3a7cf9bd..a5ff644cc9 100755 --- a/phpBB/install/phpbbcli.php +++ b/phpBB/install/phpbbcli.php @@ -23,7 +23,7 @@ if (php_sapi_name() !== 'cli') define('IN_PHPBB', true); define('IN_INSTALL', true); define('PHPBB_ENVIRONMENT', 'production'); -define('PHPBB_VERSION', '3.3.5'); +define('PHPBB_VERSION', '3.3.6-RC1'); $phpbb_root_path = __DIR__ . '/../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql index 15e839c4f2..5fb7c1d724 100644 --- a/phpBB/install/schemas/schema_data.sql +++ b/phpBB/install/schemas/schema_data.sql @@ -316,7 +316,7 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('update_hashes_lock INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_icons_path', 'images/upload_icons'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_path', 'files'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('use_system_cron', '0'); -INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '3.3.6-dev'); +INSERT INTO phpbb_config (config_name, config_value) VALUES ('version', '3.3.6-RC1'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_expire_days', '90'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('warnings_gc', '14400'); diff --git a/phpBB/phpbb/db/migration/data/v33x/v336rc1.php b/phpBB/phpbb/db/migration/data/v33x/v336rc1.php new file mode 100644 index 0000000000..e3b8a9dd95 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v33x/v336rc1.php @@ -0,0 +1,36 @@ + + * @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\v33x; + +class v336rc1 extends \phpbb\db\migration\migration +{ + public function effectively_installed() + { + return version_compare($this->config['version'], '3.3.6-RC1', '>='); + } + + public static function depends_on() + { + return [ + '\phpbb\db\migration\data\v33x\remove_orphaned_roles', + ]; + } + + public function update_data() + { + return [ + ['config.update', ['version', '3.3.6-RC1']], + ]; + } +}