mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
374aeb5fa9
This is the same fix that has been done to Flow. Database names are limited to 63 per [1], so by upping the limit we allow longer db names (e.g db names longer than 30 characters). [1] https://dev.mysql.com/doc/refman/5.7/en/mysql-cluster-limitations-database-objects.html Change-Id: I0d26a77c1bb49719eebc6beead4d79a27fcd3826
19 lines
647 B
SQL
19 lines
647 B
SQL
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
|
|
euw_wiki VARCHAR(64) NOT NULL,
|
|
# 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);
|