Set the default value for the search engine visibility for non-system pages.
authorAlexander Ebert <ebert@woltlab.com>
Wed, 10 Jan 2018 17:13:18 +0000 (18:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 10 Jan 2018 17:13:18 +0000 (18:13 +0100)
Closes #2482

This sets the default value, the `page.xml` runs shortly afterwards to
set the actual values, making this merely a safe-guard for
backwards-compatibility.

com.woltlab.wcf/update_3.1_3.sql

index 886a8f0efc201189b48f766c71801de47e2662ed..4715f0d3b56080a2a5f60bb825f4a23afd40b727 100644 (file)
@@ -138,3 +138,6 @@ INSERT INTO wcf1_contact_option (optionID, optionTitle, optionDescription, optio
 
 -- default recipient: site administrator
 INSERT INTO wcf1_contact_recipient (recipientID, name, email, isAdministrator, originIsSystem) VALUES (1, 'wcf.contact.recipient.name1', '', 1, 1);
+
+-- force-enable the visibility of all non-system pages (the page.xml is shortly after and sets the exact values)
+ALTER TABLE wcf1_page SET allowSpidersToIndex = 1 WHERE pageType <> 'system';