| 1 |
-- This file is automatically generated using maintenance/generateSchemaSql.php. |
| 2 |
-- Source: sql/tables.json |
| 3 |
-- Do not modify this file directly. |
| 4 |
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes |
| 5 |
CREATE TABLE loginnotify_seen_net ( |
| 6 |
lsn_id SERIAL NOT NULL, |
| 7 |
lsn_time_bucket SMALLINT NOT NULL, |
| 8 |
lsn_user INT NOT NULL, |
| 9 |
lsn_subnet BIGINT NOT NULL, |
| 10 |
PRIMARY KEY(lsn_id) |
| 11 |
); |
| 12 |
|
| 13 |
CREATE UNIQUE INDEX loginnotify_seen_net_user ON loginnotify_seen_net ( |
| 14 |
lsn_user, lsn_subnet, lsn_time_bucket |
| 15 |
); |