From: Alexander Ebert Date: Sat, 29 Aug 2020 16:49:48 +0000 (+0200) Subject: Set up the proper default package servers X-Git-Tag: 5.3.0_Alpha_1~16^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78ee08ed3cc4c7f8f1e5c34a0731a6e0ef3d517f;p=GitHub%2FWoltLab%2FWCF.git Set up the proper default package servers --- diff --git a/com.woltlab.wcf/update_5.3.sql b/com.woltlab.wcf/update_5.3.sql index 94b6c578b3..0cfdae34d3 100644 --- a/com.woltlab.wcf/update_5.3.sql +++ b/com.woltlab.wcf/update_5.3.sql @@ -1,3 +1,7 @@ DELETE FROM wcf1_style_variable WHERE variableName = 'useGoogleFont'; -DELETE FROM wcf1_package_update_server WHERE (serverURL LIKE '%//update.woltlab.com%' OR serverURL LIKE '%//store.woltlab.com%') AND serverURL NOT LIKE '%/5.3%'; +-- Purge the existing official package servers to clean up any mess. +DELETE FROM wcf1_package_update_server WHERE LOWER(serverURL) REGEXP 'https?://(?:store|update)\.woltlab\.com/.*'; + +-- Insert the default official package servers that will be dynamically adjusted. +INSERT INTO wcf1_package_update_server (serverURL) VALUES ('http://update.woltlab.com/5.3/'), ('http://store.woltlab.com/5.3/');