Page MenuHomePhabricator

Create a column in the globalblocks table to indicate whether email access is blocked
Closed, ResolvedPublic

Description

Summary

We need a column in the globalblocks table to store whether a user has email access globally disabled via a global block.

Background

Proposed schema changes

Addition of the gb_block_email field which is set to 0 by default (to not block email access):

+------------------------+------------------+------+-----+---------+----------------+
| Field                  | Type             | Null | Key | Default | Extra          |
+------------------------+------------------+------+-----+---------+----------------+
| gb_id                  | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
...
| gb_block_email         | tinyint(1)       | NO   |     | 0       |                |
+------------------------+------------------+------+-----+---------+----------------+

Acceptance criteria

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Dreamy_Jazz renamed this task from Create a field in the globalblocks table to indicate whether email access is blocked to Create a column in the globalblocks table to indicate whether email access is blocked.Dec 17 2025, 5:17 PM
Dreamy_Jazz updated the task description. (Show Details)
Dreamy_Jazz updated the task description. (Show Details)

Change #1219191 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@master] Add gb_block_email to the globalblocks table

https://gerrit.wikimedia.org/r/1219191

We don't need anything on the whitelist table I'd assume? If so, go for it. This is straightforward.

We don't need anything on the whitelist table I'd assume? If so, go for it. This is straightforward.

Yeah, no changes on the whitelist table would be needed. Thanks for looking at this

Change #1219191 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Add gb_block_email to the globalblocks table

https://gerrit.wikimedia.org/r/1219191