mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-25 03:05:50 -05:00
18 lines
384 B
SQL
18 lines
384 B
SQL
-- 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 timestamp_idx ON perspective_stats(timestamp);
|
|
|
|
-- update database version
|
|
UPDATE db_info SET value = '5' WHERE key = 'version';
|
|
COMMIT;
|
|
|
|
|