Fix notifications schema

This commit is contained in:
Girish Ramakrishnan
2021-04-19 21:00:31 -07:00
parent 0c8e0c4715
commit 142af8e700
2 changed files with 8 additions and 8 deletions

View File

@@ -226,7 +226,7 @@ CREATE TABLE IF NOT EXISTS notifications(
message TEXT,
acknowledged BOOLEAN DEFAULT false,
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY appPasswords_name_appId_identifier (name, userId, identifier),
FOREIGN KEY(eventId) REFERENCES eventlog(id),
PRIMARY KEY (id)
);