X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmssql%2Ftables.sql;h=ea087a6012ee714760ec23999fb46ab845ebc5e2;hb=bae9c5aca69c62ff8ae32956a082c0787cb06b73;hp=12cfed8e71b1626917de39d8f315b47211250c33;hpb=fd42f6c8486e27d7f386e2467b5c92a30371a2bf;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mssql/tables.sql b/maintenance/mssql/tables.sql index 12cfed8e71..ea087a6012 100644 --- a/maintenance/mssql/tables.sql +++ b/maintenance/mssql/tables.sql @@ -336,9 +336,9 @@ CREATE INDEX /*i*/cl_timestamp ON /*_*/categorylinks (cl_to,cl_timestamp); CREATE INDEX /*i*/cl_collation_ext ON /*_*/categorylinks (cl_collation, cl_to, cl_type, cl_from); -- --- Track all existing categories. Something is a category if 1) it has an en- --- try somewhere in categorylinks, or 2) it once did. Categories might not --- have corresponding pages, so they need to be tracked separately. +-- Track all existing categories. Something is a category if 1) it has an entry +-- somewhere in categorylinks, or 2) it has a description page. Categories +-- might not have corresponding pages, so they need to be tracked separately. -- CREATE TABLE /*_*/category ( -- Primary key @@ -861,6 +861,7 @@ CREATE INDEX /*i*/new_name_timestamp ON /*_*/recentchanges (rc_new,rc_namespace, CREATE INDEX /*i*/rc_ip ON /*_*/recentchanges (rc_ip); CREATE INDEX /*i*/rc_ns_usertext ON /*_*/recentchanges (rc_namespace, rc_user_text); CREATE INDEX /*i*/rc_user_text ON /*_*/recentchanges (rc_user_text, rc_timestamp); +CREATE INDEX /*i*/rc_name_type_patrolled_timestamp ON /*_*/recentchanges (rc_namespace, rc_type, rc_patrolled, rc_timestamp); CREATE TABLE /*_*/watchlist (