remove action field from notifications table

it is mostly unused
This commit is contained in:
Girish Ramakrishnan
2019-02-28 14:59:33 -08:00
parent fc7be2ac1a
commit 87655ff3cd
4 changed files with 29 additions and 20 deletions

View File

@@ -219,10 +219,9 @@ CREATE TABLE IF NOT EXISTS tasks(
CREATE TABLE IF NOT EXISTS notifications(
id int NOT NULL AUTO_INCREMENT,
userId VARCHAR(128) NOT NULL,
eventId VARCHAR(128),
eventId VARCHAR(128), // reference to eventlog. can be null
title VARCHAR(512) NOT NULL,
message TEXT,
action VARCHAR(512) NOT NULL,
acknowledged BOOLEAN DEFAULT false,
creationTime TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,