mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-11 10:45:38 -05:00
Abuse-monitor: Support tracking stats (#8575)
This commit is contained in:
17
databases/migrations/chat-plugins/v5.sql
Normal file
17
databases/migrations/chat-plugins/v5.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- Creates stats tables for the Perspective moderation tool.
|
||||
BEGIN TRANSACTION;
|
||||
|
||||
CREATE TABLE perspective_stats (
|
||||
staff TEXT NOT NULL,
|
||||
roomid TEXT NOT NULL PRIMARY KEY,
|
||||
result TINYINT(1) NOT NULL,
|
||||
timestamp INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX date_idx ON perspective_stats(date);
|
||||
|
||||
-- update database version
|
||||
UPDATE db_info SET value = '5' WHERE key = 'version';
|
||||
COMMIT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user