Manual:Ipblocks table

From MediaWiki.org
Jump to: navigation, search
Manual:Contents MediaWiki database layout ipblocks table



The ipblocks table stores details of IP addresses and users who have been blocked from editing. The name "ipblocks" is a legacy name, as now user account blocks are also stored in this table.

Fields[edit | edit source]

ipb_id[edit | edit source]

MediaWiki version: 1.2

Primary key, introduced for privacy.

ipb_address[edit | edit source]

Blocked IP address in dotted-quad form or user name.

ipb_user[edit | edit source]

Blocked user ID or 0 for IP blocks.

ipb_by[edit | edit source]

User ID of the administrator who made the block.

ipb_by_text[edit | edit source]

MediaWiki version: 1.13

Text username of the administrator who made the block.

ipb_reason[edit | edit source]

Reason for the block given by the administrator.

ipb_timestamp[edit | edit source]

Creation (or refresh) date in standard YMDHMS form.

ipb_auto[edit | edit source]

Indicates that the IP address was blocked because a blocked user accessed a page through it. If this is 1, ipb_address will be hidden.

ipb_anon_only[edit | edit source]

MediaWiki version: 1.6

If set to 1, the block only applies to logged out users.

ipb_create_account[edit | edit source]

Prevents account creation from matching IP addresses.

ipb_enable_autoblock[edit | edit source]

MediaWiki version: 1.6

Enables autoblock on the block.

ipb_expiry[edit | edit source]

MediaWiki version: 1.2

Expiry time set by the administrator at the time of the block. A standard timestamp or the string 'infinity'

ipb_range_start[edit | edit source]

MediaWiki version: 1.6

The first IP in an IP range block.

ipb_range_end[edit | edit source]

The last IP in an IP range block.

ipb_deleted[edit | edit source]

MediaWiki version: 1.10

Allows the entry to be flagged, hiding it from users and sysops.

ipb_block_email[edit | edit source]

MediaWiki version: 1.11

Prevents the user from accessing Special:Emailuser

ipb_allow_usertalk[edit | edit source]

MediaWiki version: 1.14

Prevents a blocked user from editing their talk page. A value of 1 means that the user is not allowed to edit his user talk page. (Thus, a less confusing name would have been ipb_block_usertalk).

ipb_parent_block_id[edit | edit source]

MediaWiki version: 1.20

ID of the block that caused this block to exist. Autoblocks set this to the original block so that the original block being deleted also deletes the autoblocks.

Current version[edit | edit source]

MediaWiki version: 1.21


+----------------------+------------------+------+-----+----------------+----------------+
| Field                | Type             | Null | Key | Default        | Extra          |
+----------------------+------------------+------+-----+----------------+----------------+
| ipb_id               | int(11)          | NO   | PRI | NULL           | auto_increment |
| ipb_address          | tinyblob         | NO   | MUL | NULL           |                |
| ipb_user             | int(10) unsigned | NO   | MUL | 0              |                |
| ipb_by               | int(10) unsigned | NO   |     | 0              |                |
| ipb_by_text          | varchar(255)     | NO   |     |                |                |
| ipb_reason           | tinyblob         | NO   |     | NULL           |                |
| ipb_timestamp        | binary(14)       | NO   | MUL |                |                |
| ipb_auto             | tinyint(1)       | NO   |     | 0              |                |
| ipb_anon_only        | tinyint(1)       | NO   |     | 0              |                |
| ipb_create_account   | tinyint(1)       | NO   |     | 1              |                |
| ipb_enable_autoblock | tinyint(1)       | NO   |     | 1              |                |
| ipb_expiry           | varbinary(14)    | NO   | MUL |                |                |
| ipb_range_start      | tinyblob         | NO   | MUL | NULL           |                |
| ipb_range_end        | tinyblob         | NO   |     | NULL           |                |
| ipb_deleted          | tinyint(1)       | NO   |     | 0              |                |
| ipb_block_email      | tinyint(1)       | NO   |     | 0              |                |
| ipb_allow_usertalk   | tinyint(1)       | NO   |     | 0              |                |
| ipb_parent_block_id  | int(11)          | YES  | MUL | NULL           |                |
+----------------------+------------------+------+-----+----------------+----------------+
MediaWiki version: 1.20


+----------------------+------------------+------+-----+----------------+----------------+
| Field                | Type             | Null | Key | Default        | Extra          |
+----------------------+------------------+------+-----+----------------+----------------+
| ipb_id               | int(11)          | NO   | PRI | NULL           | auto_increment |
| ipb_address          | tinyblob         | NO   | MUL | NULL           |                |
| ipb_user             | int(10) unsigned | NO   | MUL | 0              |                |
| ipb_by               | int(10) unsigned | NO   |     | 0              |                |
| ipb_by_text          | varbinary(255)   | NO   |     |                |                |
| ipb_reason           | tinyblob         | NO   |     | NULL           |                |
| ipb_timestamp        | binary(14)       | NO   | MUL |                |                |
| ipb_auto             | tinyint(1)       | NO   |     | 0              |                |
| ipb_anon_only        | tinyint(1)       | NO   |     | 0              |                |
| ipb_create_account   | tinyint(1)       | NO   |     | 1              |                |
| ipb_enable_autoblock | tinyint(1)       | NO   |     | 1              |                |
| ipb_expiry           | varbinary(14)    | NO   | MUL |                |                |
| ipb_range_start      | tinyblob         | NO   | MUL | NULL           |                |
| ipb_range_end        | tinyblob         | NO   |     | NULL           |                |
| ipb_deleted          | tinyint(1)       | NO   |     | 0              |                |
| ipb_block_email      | tinyint(1)       | NO   |     | 0              |                |
| ipb_allow_usertalk   | tinyint(1)       | NO   |     | 0              |                |
| ipb_parent_block_id  | int(11)          | YES  | MUL | NULL           |                |
+----------------------+------------------+------+-----+----------------+----------------+

Previous Versions[edit | edit source]

MediaWiki version: 1.14


+----------------------+------------------+------+-----+----------------+----------------+
| Field                | Type             | Null | Key | Default        | Extra          |
+----------------------+------------------+------+-----+----------------+----------------+
| ipb_id               | int(11)          | NO   | PRI |                | auto_increment |
| ipb_address          | tinyblob         | NO   |     |                |                |
| ipb_user             | int(10) unsigned | NO   | MUL | 0              |                |
| ipb_by               | int(10) unsigned | NO   |     | 0              |                |
| ipb_by_text          | varbinary(255)   | NO   |     |                |                |
| ipb_reason           | tinyblob         | NO   |     |                |                |
| ipb_timestamp        | binary(14)       | NO   | MUL |                |                |
| ipb_auto             | bool             | NO   |     | 0              |                |
| ipb_anon_only        | bool             | NO   |     | 0              |                |
| ipb_create_account   | bool             | NO   |     | 1              |                |
| ipb_enable_autoblock | bool             | NO   |     | 1              |                |
| ipb_expiry           | varbinary(14)    | NO   | MUL |                |                |
| ipb_range_start      | tinyblob         | NO   | MUL | NULL           |                |
| ipb_range_end        | tinyblob         | NO   |     | NULL           |                |
| ipb_deleted          | bool             | NO   |     | 0              |                |
| ipb_block_email      | bool             | NO   |     | 0              |                |
| ipb_allow_usertalk   | bool             | NO   |     | 0              |                |
+----------------------+------------------+------+-----+----------------+----------------+


MediaWiki version: 1.13
MediaWiki version: 1.12
MediaWiki version: 1.11


+----------------------+------------------+------+-----+----------------+----------------+
| Field                | Type             | Null | Key | Default        | Extra          |
+----------------------+------------------+------+-----+----------------+----------------+
| ipb_id               | int(11)          | NO   | PRI | NULL           | auto_increment |
| ipb_address          | tinyblob         | NO   | MUL | NULL           |                |
| ipb_user             | int(10) unsigned | NO   | MUL | 0              |                |
| ipb_by               | int(10) unsigned | NO   |     | 0              |                |
| ipb_by_text          | varchar(255)     | NO   |     |                |                |
| ipb_reason           | tinyblob         | NO   |     | NULL           |                |
| ipb_timestamp        | binary(14)       | NO   | MUL |                |                |
| ipb_auto             | bool             | NO   |     | 0              |                |
| ipb_anon_only        | bool             | NO   |     | 0              |                |
| ipb_create_account   | bool             | NO   |     | 1              |                |
| ipb_enable_autoblock | bool             | NO   |     | 1              |                |
| ipb_expiry           | varbinary(14)    | NO   | MUL |                |                |
| ipb_range_start      | tinyblob         | NO   | MUL | NULL           |                |
| ipb_range_end        | tinyblob         | NO   |     | NULL           |                |
| ipb_deleted          | bool             | NO   |     | 0              |                |
| ipb_block_email      | bool             | NO   |     | 0              |                |
+----------------------+------------------+------+-----+----------------+----------------+
MediaWiki version: 1.10


+----------------------+------------------+------+-----+----------------+----------------+
| Field                | Type             | Null | Key | Default        | Extra          |
+----------------------+------------------+------+-----+----------------+----------------+
| ipb_id               | int(11)          | NO   | PRI | NULL           | auto_increment |
| ipb_address          | tinyblob         | NO   | MUL | NULL           |                |
| ipb_user             | int(10) unsigned | NO   | MUL | 0              |                |
| ipb_by               | int(10) unsigned | NO   |     | 0              |                |
| ipb_by_text          | varchar(255)     | NO   |     |                |                |
| ipb_reason           | tinyblob         | NO   |     | NULL           |                |
| ipb_timestamp        | binary(14)       | NO   | MUL |                |                |
| ipb_auto             | bool             | NO   |     | 0              |                |
| ipb_anon_only        | bool             | NO   |     | 0              |                |
| ipb_create_account   | bool             | NO   |     | 1              |                |
| ipb_enable_autoblock | bool             | NO   |     | 1              |                |
| ipb_expiry           | varbinary(14)    | NO   | MUL |                |                |
| ipb_range_start      | tinyblob         | NO   | MUL | NULL           |                |
| ipb_range_end        | tinyblob         | NO   |     | NULL           |                |
| ipb_deleted          | bool             | NO   |     | 0              |                |
+----------------------+------------------+------+-----+----------------+----------------+
MediaWiki version: 1.9


+----------------------+-----------------+------+-----+---------+----------------+
| Field                | Type            | Null | Key | Default | Extra          |
+----------------------+-----------------+------+-----+---------+----------------+
| ipb_id               | int(8)          | NO   | PRI | NULL    | auto_increment |
| ipb_address          | tinyblob        | NO   | MUL | NULL    |                |
| ipb_user             | int(8) unsigned | NO   | MUL | 0       |                |
| ipb_by               | int(8) unsigned | NO   |     | 0       |                |
| ipb_reason           | tinyblob        | NO   |     | NULL    |                |
| ipb_timestamp        | char(14)        | NO   | MUL | NULL    |                |
| ipb_auto             | bool            | NO   |     | 0       |                |
| ipb_anon_only        | bool            | NO   |     | 0       |                |
| ipb_create_account   | bool            | NO   |     | 1       |                |
| ipb_enable_autoblock | bool            | NO   |     | 1       |                |
| ipb_expiry           | char(14)        | NO   | MUL | NULL    |                |
| ipb_range_start      | tinyblob        | NO   | MUL | NULL    |                |
| ipb_range_end        | tinyblob        | NO   |     | NULL    |                |
+----------------------+-----------------+------+-----+---------+----------------+
MediaWiki version: 1.8


+--------------------+-----------------+------+-----+---------+----------------+
| Field              | Type            | Null | Key | Default | Extra          |
+--------------------+-----------------+------+-----+---------+----------------+
| ipb_id             | int(8)          | NO   | PRI | NULL    | auto_increment |
| ipb_address        | tinyblob        | NO   | MUL | NULL    |                |
| ipb_user           | int(8) unsigned | NO   | MUL | 0       |                |
| ipb_by             | int(8) unsigned | NO   |     | 0       |                |
| ipb_reason         | tinyblob        | NO   |     | NULL    |                |
| ipb_timestamp      | char(14)        | NO   | MUL | NULL    |                |
| ipb_auto           | bool            | NO   |     | 0       |                |
| ipb_anon_only      | bool            | NO   |     | 0       |                |
| ipb_create_account | bool            | NO   |     | 1       |                |
| ipb_expiry         | char(14)        | NO   | MUL | NULL    |                |
| ipb_range_start    | tinyblob        | NO   | MUL | NULL    |                |
| ipb_range_end      | tinyblob        | NO   |     | NULL    |                |
+--------------------+-----------------+------+-----+---------+----------------+
MediaWiki version: 1.7
MediaWiki version: 1.6


+--------------------+-----------------+------+-----+---------+----------------+
| Field              | Type            | Null | Key | Default | Extra          |
+--------------------+-----------------+------+-----+---------+----------------+
| ipb_id             | int(8)          | NO   | PRI | NULL    | auto_increment |
| ipb_address        | tinyblob        | NO   | MUL | NULL    |                |
| ipb_user           | int(8) unsigned | NO   | MUL | 0       |                |
| ipb_by             | int(8) unsigned | NO   |     | 0       |                |
| ipb_reason         | tinyblob        | NO   |     | NULL    |                |
| ipb_timestamp      | char(14)        | NO   | MUL | NULL    |                |
| ipb_auto           | tinyint(1)      | NO   |     | 0       |                |
| ipb_expiry         | char(14)        | NO   | MUL | NULL    |                |
| ipb_range_start    | tinyblob        | NO   | MUL | NULL    |                |
| ipb_range_end      | tinyblob        | NO   |     | NULL    |                |
+--------------------+-----------------+------+-----+---------+----------------+
MediaWiki version: 1.5


+--------------------+-----------------+------+-----+---------+----------------+
| Field              | Type            | Null | Key | Default | Extra          |
+--------------------+-----------------+------+-----+---------+----------------+
| ipb_id             | int(8)          | NO   | PRI | NULL    | auto_increment |
| ipb_address        | tinyblob        | NO   | MUL | NULL    |                |
| ipb_user           | int(8) unsigned | NO   | MUL | 0       |                |
| ipb_by             | int(8) unsigned | NO   |     | 0       |                |
| ipb_reason         | tinyblob        | NO   |     | NULL    |                |
| ipb_timestamp      | char(14)        | NO   | MUL | NULL    |                |
| ipb_auto           | tinyint(1)      | NO   |     | 0       |                |
| ipb_expiry         | char(14)        | NO   | MUL | NULL    |                |
+--------------------+-----------------+------+-----+---------+----------------+
Databases Engines: MySQLOraclePostgreSQLSQLite
Technical documentation: Schema (tables) – API property associationsField prefixesPrimary key storage in other fieldsWikimedia extension tables
Configuration: SettingsSharing
Development: AccessOptimizationPolicyUpdaterExtension schema updatesPatch file
Core tables: archivecategorycategorylinkschange_tagconfigexternallinksfilearchivehitcounterimageimagelinksinterwikiiwlinksipblocksjobl10n_cachelanglinkslogginglog_searchmsg_resourcemsg_resource_linksmodule_depsobjectcacheoldimagepagepagelinkspage_propspage_restrictionsprotected_titlesquerycachequerycachetwoquerycache_inforecentchangesredirectrevisionsearchindexsitessite_statstag_summarytemplatelinkstexttranscacheupdateloguploadstashuseruser_former_groupsuser_groupsuser_newtalkuser_propertiesvalid_tagwatchlist
Language: English  • 日本語 • polski

See also[edit | edit source]