From da48c178ea7a4ef3e787c05cb2c67d9654936ee1 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 16 Feb 2024 17:42:58 +0100 Subject: [PATCH] [ticket/17283] Add migration for font awesome 6.5.1 cdn url PHPBB3-17283 --- .../data/v400/font_awesome_6_upgrade.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 phpBB/phpbb/db/migration/data/v400/font_awesome_6_upgrade.php diff --git a/phpBB/phpbb/db/migration/data/v400/font_awesome_6_upgrade.php b/phpBB/phpbb/db/migration/data/v400/font_awesome_6_upgrade.php new file mode 100644 index 0000000000..83e62d4aca --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v400/font_awesome_6_upgrade.php @@ -0,0 +1,34 @@ + + * @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\v400; + +use phpbb\db\migration\migration; + +class font_awesome_6_upgrade extends migration +{ + public static function depends_on(): array + { + return [ + '\phpbb\db\migration\data\v400\dev', + '\phpbb\db\migration\data\v33x\font_awesome_5_rollback', + ]; + } + + public function update_data(): array + { + return [ + ['config.update', ['load_font_awesome_url', 'https://use.fontawesome.com/releases/v6.5.1/css/all.css']], + ]; + } +}