2015-10-26 15:27:31 +00:00
|
|
|
CREATE TABLE /*_*/echo_unread_wikis (
|
|
|
|
# Primary key
|
|
|
|
euw_id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
|
|
# Global user id
|
|
|
|
euw_user INT UNSIGNED NOT NULL,
|
|
|
|
# Name of wiki
|
2020-06-07 13:53:43 +00:00
|
|
|
euw_wiki VARCHAR(64) NOT NULL,
|
2015-10-26 15:27:31 +00:00
|
|
|
# unread alerts count on that wiki
|
|
|
|
euw_alerts INT UNSIGNED NOT NULL,
|
|
|
|
# Timestamp of the most recent unread alert
|
|
|
|
euw_alerts_ts BINARY(14) NOT NULL,
|
|
|
|
# unread messages count on that wiki
|
|
|
|
euw_messages INT UNSIGNED NOT NULL,
|
|
|
|
# Timestamp of the most recent unread message
|
|
|
|
euw_messages_ts BINARY(14) NOT NULL
|
|
|
|
) /*$wgDBTableOptions*/;
|
|
|
|
|
|
|
|
CREATE UNIQUE INDEX /*i*/echo_unread_wikis_user_wiki ON /*_*/echo_unread_wikis (euw_user,euw_wiki);
|