fix(notifications): always update the media table when seasons become available

This commit is contained in:
sct
2020-12-21 01:40:23 +09:00
parent 44a305426f
commit 0916b58594
5 changed files with 88 additions and 2 deletions

View File

@@ -29,7 +29,12 @@ const handle = app.getRequestHandler();
app
.prepare()
.then(async () => {
await createConnection();
const dbConnection = await createConnection();
await dbConnection.query('PRAGMA foreign_keys=OFF');
await dbConnection.runMigrations();
await dbConnection.query('PRAGMA foreign_keys=ON');
// Load Settings
const settings = getSettings().load();