From 5676411710fc8c75ab49386c2ed7d456de5b71da Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Mon, 2 Dec 2013 15:30:40 -0400 Subject: [PATCH] Add missing subjectspace pages to watchlist on update. Previously this only fixed the other direction, if a talk page was missing, but it still complained for missing subject pages. Discovered by Joergi on irc Change-Id: I439eb0c4a74260157f9542470f01f189fe9081c5 --- includes/installer/MysqlUpdater.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index cc5313a8f0..ffa49005d1 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -390,6 +390,16 @@ class MysqlUpdater extends DatabaseUpdater { 'wl_notificationtimestamp' => 'wl_notificationtimestamp' ), array( 'NOT (wl_namespace & 1)' ), __METHOD__, 'IGNORE' ); $this->output( "done.\n" ); + + $this->output( "Adding missing watchlist subject page rows... " ); + $this->db->insertSelect( 'watchlist', 'watchlist', + array( + 'wl_user' => 'wl_user', + 'wl_namespace' => 'wl_namespace & ~1', + 'wl_title' => 'wl_title', + 'wl_notificationtimestamp' => 'wl_notificationtimestamp' + ), array( 'wl_namespace & 1' ), __METHOD__, 'IGNORE' ); + $this->output( "done.\n" ); } function doSchemaRestructuring() { -- 2.20.1