mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Be postgressive
This commit is contained in:
parent
4669def000
commit
fb95035a65
@ -1,10 +1,9 @@
|
|||||||
CREATE TABLE user_threepids (
|
CREATE TABLE user_threepids (
|
||||||
id INTEGER PRIMARY KEY NOT NULL,
|
|
||||||
user TEXT NOT NULL,
|
user TEXT NOT NULL,
|
||||||
medium TEXT NOT NULL,
|
medium TEXT NOT NULL,
|
||||||
address TEXT NOT NULL,
|
address TEXT NOT NULL,
|
||||||
validated_at INTEGER NOT NULL,
|
validated_at BIGINT NOT NULL,
|
||||||
added_at INTEGER NOT NULL,
|
added_at BIGINT NOT NULL,
|
||||||
CONSTRAINT user_medium_address UNIQUE (user, medium, address) ON CONFLICT REPLACE
|
CONSTRAINT user_medium_address UNIQUE (user, medium, address)
|
||||||
);
|
);
|
||||||
CREATE INDEX user_threepids_user ON user_threepids(user);
|
CREATE INDEX user_threepids_user ON user_threepids(user);
|
||||||
|
Loading…
Reference in New Issue
Block a user