Manual:Ip changes table: Difference between revisions
Appearance
Content deleted Content added
update |
purpose |
||
Line 5: | Line 5: | ||
<translate><!--T:1--> Every time an edit by a logged out user is saved, a row is created in the <tvar|1>'''ip_changes'''</> table.</translate> |
<translate><!--T:1--> Every time an edit by a logged out user is saved, a row is created in the <tvar|1>'''ip_changes'''</> table.</translate> |
||
<translate><!--T:2--> This stores the IP as a [[w:Hexadecimal#Representation|hex representation]] so that we can more easily find edits within an [[<tvar|man>Special:MyLanguage/Manual:IP ranges</>|IP range]].</translate> |
<translate><!--T:2--> This stores the IP as a [[w:Hexadecimal#Representation|hex representation]] so that we can more easily find edits within an [[<tvar|man>Special:MyLanguage/Manual:IP ranges</>|IP range]].</translate> |
||
<translate>One of the primary purposes of the table is to support IP range queries at Special:Contributions.</translate> |
|||
<translate><!--T:3--> This table was introduced in <tvar|1>{{Gerrit|370946}}</>.</translate> |
<translate><!--T:3--> This table was introduced in <tvar|1>{{Gerrit|370946}}</>.</translate> |
||
Revision as of 22:22, 22 December 2020
↑ Manual:Contents | MediaWiki database layout | ip_changes table |
MediaWiki version: | ≥ 1.30 |
Every time an edit by a logged out user is saved, a row is created in the ip_changes table. This stores the IP as a hex representation so that we can more easily find edits within an IP range. One of the primary purposes of the table is to support IP range queries at Special:Contributions. This table was introduced in Gerrit change 370946.
Fields
ipc_rev_id
Foreign key to the revision table, also serves as the unique primary key.
ipc_rev_timestamp
The timestamp of the revision.
ipc_hex
Hex representation of the IP address, as returned by
.
IP::toHex()
is then used to identify revisions within a given range.
BETWEEN
Schema summary
MediaWiki version: | ≥ 1.36 |
DESCRIBE ip_changes;
+-------------------+------------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------------+------------------+------+-----+---------+-------+ | ipc_rev_id | int(10) unsigned | NO | PRI | 0 | | | ipc_rev_timestamp | binary(14) | NO | MUL | NULL | | | ipc_hex | varbinary(35) | NO | MUL | | | +-------------------+------------------+------+-----+---------+-------+
MediaWiki versions: | 1.30 – 1.35 |
DESCRIBE ip_changes;
+-------------------+------------------+------+-----+----------------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------------+------------------+------+-----+----------------+-------+ | ipc_rev_id | int(10) unsigned | NO | PRI | 0 | | | ipc_rev_timestamp | binary(14) | NO | MUL | | | | ipc_hex | varbinary(35) | NO | MUL | | | +-------------------+------------------+------+-----+----------------+-------+