mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-12-24 04:22:54 +00:00
15 lines
536 B
MySQL
15 lines
536 B
MySQL
|
-- This file is automatically generated using maintenance/generateSchemaSql.php.
|
||
|
-- Source: sql/tables.json
|
||
|
-- Do not modify this file directly.
|
||
|
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
|
||
|
CREATE TABLE /*_*/loginnotify_seen_net (
|
||
|
lsn_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||
|
lsn_time_bucket SMALLINT UNSIGNED NOT NULL,
|
||
|
lsn_user INTEGER UNSIGNED NOT NULL,
|
||
|
lsn_subnet BIGINT NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE UNIQUE INDEX loginnotify_seen_net_user ON /*_*/loginnotify_seen_net (
|
||
|
lsn_user, lsn_subnet, lsn_time_bucket
|
||
|
);
|