From: OverlordQ Date: Wed, 28 Oct 2009 18:24:04 +0000 (+0000) Subject: (bug 13453) Fix rebuildrecentchanges for DB's with FK constraints X-Git-Tag: 1.31.0-rc.0~39056 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=adbb5e80d64de08f0be300f4484a81e5fb72b29a;p=lhc%2Fweb%2Fwiklou.git (bug 13453) Fix rebuildrecentchanges for DB's with FK constraints --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 11b6e56461..d22d1a693e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -666,6 +666,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 21085) list=deletedrevs no longer returns only one revision when drcontinue param is passed * (bug 21106) Deprecated parameters now tagged in action=paraminfo +* (bug 13453) rebuildrecentchanges maintenance script works on PG again === Languages updated in 1.16 === diff --git a/maintenance/rebuildrecentchanges.php b/maintenance/rebuildrecentchanges.php index 4bfb08a73b..6fb55ff8d9 100644 --- a/maintenance/rebuildrecentchanges.php +++ b/maintenance/rebuildrecentchanges.php @@ -186,7 +186,7 @@ class RebuildRecentchanges extends Maintenance { 'rc_this_oldid' => 0, 'rc_last_oldid' => 0, 'rc_type' => RC_LOG, - 'rc_cur_id' => 'COALESCE(page_id, 0)', + 'rc_cur_id' => $dbw->cascadingDeletes() ? 'page_id' : 'COALESCE(page_id, 0)', 'rc_log_type' => 'log_type', 'rc_log_action' => 'log_action', 'rc_logid' => 'log_id',