Make displayname non null

This commit is contained in:
Joshua Hong 2021-07-21 13:53:18 -04:00
parent fb9c14de55
commit cfeabb0662
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ CREATE TABLE IF NOT EXISTS roomserver_membership (
-- room joins.
target_local BOOLEAN NOT NULL DEFAULT false,
forgotten BOOLEAN NOT NULL DEFAULT FALSE,
displayname TEXT,
displayname TEXT NOT NULL DEFAULT "",
UNIQUE (room_nid, target_nid)
);
`

View file

@ -37,7 +37,7 @@ const membershipSchema = `
event_nid INTEGER NOT NULL DEFAULT 0,
target_local BOOLEAN NOT NULL DEFAULT false,
forgotten BOOLEAN NOT NULL DEFAULT false,
displayname TEXT,
displayname TEXT NOT NULL DEFAULT "",
UNIQUE (room_nid, target_nid)
);
`