From: Kunal Mehta Date: Thu, 7 Sep 2017 01:09:42 +0000 (-0700) Subject: Document DB_SLAVE as deprecated X-Git-Tag: 1.31.0-rc.0~2191 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=92c3b2404ee000d5e89d14243249b5e3d8111af2 Document DB_SLAVE as deprecated Change-Id: I50c127b7857b6dbccfd09014d72a130071870fab --- diff --git a/RELEASE-NOTES-1.30 b/RELEASE-NOTES-1.30 index 0b2faecea9..f741a4e627 100644 --- a/RELEASE-NOTES-1.30 +++ b/RELEASE-NOTES-1.30 @@ -212,6 +212,7 @@ changes to languages because of Phabricator reports. * (T157227) bot_password.bp_user, change_tag.ct_log_id, change_tag.ct_rev_id, page_restrictions.pr_user, tag_summary.ts_log_id, tag_summary.ts_rev_id and user_properties.up_user have all been made unsigned on MySQL. +* DB_SLAVE is deprecated. DB_REPLICA should be used instead. == Compatibility == MediaWiki 1.30 requires PHP 5.5.9 or later. There is experimental support for diff --git a/includes/Defines.php b/includes/Defines.php index 8ac84e5ab5..ca603e7684 100644 --- a/includes/Defines.php +++ b/includes/Defines.php @@ -31,6 +31,9 @@ use Wikimedia\Rdbms\IDatabase; */ # Obsolete aliases +/** + * @deprecated since 1.28 + */ define( 'DB_SLAVE', -1 ); /**@{