mediawiki-extensions-AbuseF.../includes/api
Daimona Eaytoy 01f699ff07 Remove useless SpecialAbuseLog::getNotDeletedCond
The method is used to make afl_deleted = null treated as afl_deleted =
0. Digging into code history, I found that it's in place because:

*In rEABF14b850f891de27ea09a1439e3835f66c49ad773f the afl_deleted field
was introduced as NULL, and wasn't used.
*In rEABFfe39e38282fc4c7903eb3f8080dbf0bab0f697f4 it was ALTERed to be
"NOT NULL DEFAULT 0"
*And in rEABFa2ead8bfb5166e0b354f3bb3e09f39795cb5b1c0 this function was
introduced to "negate the need for a schema change".

However, when ALTERing afl_deleted to be NOT NULL DEFAULT 0, all NULL
values have been automatically converted to 0 thanks to the DEFAULT
clause, and being the column NOT NULL, of course no NULL are still
there... The ALTER was applied to all wikis (in 2010), so afl_deleted is
NOT NULL everywhere and we can safely treat it as such.

Change-Id: Iebd843629d26e392d2e24efc2795c767e854897a
2019-03-23 11:49:30 +01:00
..
ApiAbuseFilterCheckMatch.php Allow users with abusefilter-view-private to use testing interface 2018-06-24 14:10:38 +00:00
ApiAbuseFilterCheckSyntax.php Allow users with abusefilter-view-private to use testing interface 2018-06-24 14:10:38 +00:00
ApiAbuseFilterEvalExpression.php Fix coding conventions exclusion rules 2018-04-20 08:40:18 +00:00
ApiAbuseFilterUnblockAutopromote.php Add phan configuration 2018-04-30 08:32:58 +00:00
ApiQueryAbuseFilters.php Revert "Revert "Add typehinting for every object-only parameter"" 2018-11-15 10:09:16 +01:00
ApiQueryAbuseLog.php Remove useless SpecialAbuseLog::getNotDeletedCond 2019-03-23 11:49:30 +01:00