From 78ee08ed3cc4c7f8f1e5c34a0731a6e0ef3d517f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 29 Aug 2020 18:49:48 +0200 Subject: [PATCH] Set up the proper default package servers --- com.woltlab.wcf/update_5.3.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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/'); -- 2.20.1