summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-01 17:54:37 +0100
committerNeil Johnson <neil@matrix.org>2018-08-01 17:54:37 +0100
commitec716a35b219d147dee51733b55573952799a549 (patch)
tree4f4437a3705b5341f5924f397ac85644d13af600 /synapse/storage/schema
parentMerge branch 'develop' of github.com:matrix-org/synapse into neilj/mau_tracker (diff)
downloadsynapse-ec716a35b219d147dee51733b55573952799a549.tar.xz
change monthly_active_users table to be a single column
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/delta/51/monthly_active_users.sql4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/schema/delta/51/monthly_active_users.sql b/synapse/storage/schema/delta/51/monthly_active_users.sql
index f2b6d3e31e..590b1abab2 100644
--- a/synapse/storage/schema/delta/51/monthly_active_users.sql
+++ b/synapse/storage/schema/delta/51/monthly_active_users.sql
@@ -15,9 +15,7 @@
 
 -- a table of monthly active users, for use where blocking based on mau limits
 CREATE TABLE monthly_active_users (
-    user_id TEXT NOT NULL,
-    timestamp BIGINT NOT NULL
+    user_id TEXT NOT NULL
 );
 
 CREATE UNIQUE INDEX monthly_active_users_users ON monthly_active_users(user_id);
-CREATE INDEX monthly_active_users_time_stamp ON monthly_active_users(timestamp);