force rerun of migrations
This commit is contained in:
parent
c5be16963d
commit
486156675c
2
index.js
2
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 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user