Add a comment to offer a hint to an explanation for why we have a unique constraint on (app_id, pushkey, user_id)

This commit is contained in:
Mark Haines 2016-03-16 10:35:00 +00:00
parent ee32d622ce
commit ba660ecde2

View File

@ -18,6 +18,7 @@ CREATE TABLE IF NOT EXISTS deleted_pushers(
app_id TEXT NOT NULL, app_id TEXT NOT NULL,
pushkey TEXT NOT NULL, pushkey TEXT NOT NULL,
user_id TEXT NOT NULL, user_id TEXT NOT NULL,
/* We only track the most recent delete for each app_id, pushkey and user_id. */
UNIQUE (app_id, pushkey, user_id) UNIQUE (app_id, pushkey, user_id)
); );