From 18eecb6223154e1a40cb04fe227210207f06b665 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 11 Jun 2019 19:54:57 -0600 Subject: [PATCH] Fix user_temporary_token table --- core/database.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/database.js b/core/database.js index b3778833..e0e58168 100644 --- a/core/database.js +++ b/core/database.js @@ -212,9 +212,9 @@ const DB_INIT_TABLE = { `CREATE TABLE IF NOT EXISTS user_temporary_token ( user_id INTEGER NOT NULL, token VARCHAR NOT NULL, + token_type VARCHAR NOT NULL, timestamp DATETIME NOT NULL, - purpose VARCHAR NOT NULL, - UNIQUE(user_id, token), + UNIQUE(user_id, token_type), FOREIGN KEY(user_id) REFERENCES user(id) ON DELETE CASCADE );` );