From 486156675c09822a1ccfeaec03c5e8c1a3b2cade Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 16 Aug 2020 12:25:35 +0200 Subject: [PATCH] force rerun of migrations --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 22b4c27..6fcc2b7 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,7 @@ const password_helper = require ('@sapphirecode/password-helper'); const api = require ('./lib/api'); const http_proxy = require ('express-http-proxy'); const history_fallback = require ('connect-history-api-fallback'); +const fs = require ('fs'); const salt = crypto.create_salt (); const hash = crypto.hash_sha512 ('asd', salt); @@ -22,6 +23,7 @@ const user = { }; (async () => { + fs.unlinkSync ('db.sqlite'); await db.init (true); const app = express ();