force rerun of migrations

This commit is contained in:
Timo Hocker 2020-08-16 12:25:35 +02:00
parent c5be16963d
commit 486156675c

View File

@ -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 ();