Better default values for page visibility
authorAlexander Ebert <ebert@woltlab.com>
Sun, 11 Feb 2018 21:06:55 +0000 (22:06 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 11 Feb 2018 21:06:55 +0000 (22:06 +0100)
com.woltlab.wcf/update_3.1.0.sql
com.woltlab.wcf/update_3.1_3.sql

index 45eb298586f31fcb6e75be83174d370102e9a188..21a0e4b28deb007f4643ed0e5ff97dda4f345cfc 100644 (file)
@@ -3,4 +3,4 @@
 -- This value isn't valid by definition, but because it is considered to be a true-ish
 -- value, we can use this to imply an "implicit yes" without breaking any checks. Check
 -- the PagePackageInstallationPlugin to see what this magic value is good for.
-UPDATE wcf1_page SET allowSpidersToIndex = 2;
+UPDATE wcf1_page SET allowSpidersToIndex = 2 WHERE pageType = 'system';
index 129a0fc8a119f3ad9f58e8e13cde9c99e4179ee7..5341a79648e799e4201640c571baa10597b4ce22 100644 (file)
@@ -143,4 +143,5 @@ INSERT INTO wcf1_contact_recipient (recipientID, name, email, isAdministrator, o
 -- This value isn't valid by definition, but because it is considered to be a true-ish
 -- value, we can use this to imply an "implicit yes" without breaking any checks. Check
 -- the PagePackageInstallationPlugin to see what this magic value is good for.
-UPDATE wcf1_page SET allowSpidersToIndex = 2;
+UPDATE wcf1_page SET allowSpidersToIndex = 1 WHERE pageType <> 'system';
+UPDATE wcf1_page SET allowSpidersToIndex = 2 WHERE pageType = 'system';