From f105c25e17622360db297876f7f91b687cd2113c Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 26 Sep 2017 10:39:23 -0600 Subject: [PATCH] Add file_web_serve_batch table --- core/database.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/database.js b/core/database.js index 41aa7a41..14b3bf95 100644 --- a/core/database.js +++ b/core/database.js @@ -374,6 +374,15 @@ const DB_INIT_TABLE = { );` ); + dbs.file.run( + `CREATE TABLE IF NOT EXISTS file_web_serve_batch ( + hash_id VARCHAR NOT NULL, + file_id INTEGER NOT NULL, + + UNIQUE(hash_id, file_id) + );` + ); + return cb(null); } }; \ No newline at end of file