Oops, forgot the schema delta file

This commit is contained in:
David Baker 2015-04-29 16:49:44 +01:00
parent 0337eaf321
commit 4669def000
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
CREATE TABLE user_threepids (
id INTEGER PRIMARY KEY NOT NULL,
user TEXT NOT NULL,
medium TEXT NOT NULL,
address TEXT NOT NULL,
validated_at INTEGER NOT NULL,
added_at INTEGER NOT NULL,
CONSTRAINT user_medium_address UNIQUE (user, medium, address) ON CONFLICT REPLACE
);
CREATE INDEX user_threepids_user ON user_threepids(user);