mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-04-29 00:39:17 -05:00
better fix for migration in electron + electron upgrade to 1.8.2 beta 3
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
module.exports = { build_date:"2017-12-04T23:02:48-05:00", build_revision: "23e8e20d44ef029e6891dec6d2d855d282996823" };
|
||||
module.exports = { build_date:"2017-12-06T21:05:03-05:00", build_revision: "bbd177481523bf6d7c9388b0ddf65af7f5c61e6b" };
|
||||
|
||||
@@ -4,12 +4,9 @@ const options = require('./options');
|
||||
const fs = require('fs-extra');
|
||||
const log = require('./log');
|
||||
const app_info = require('./app_info');
|
||||
const path = require('path');
|
||||
|
||||
let MIGRATIONS_DIR = "migrations";
|
||||
|
||||
if (!fs.existsSync(MIGRATIONS_DIR) && isElectron()) {
|
||||
MIGRATIONS_DIR = "resources/app/migrations";
|
||||
}
|
||||
const MIGRATIONS_DIR = path.resolve(__dirname, "..", "migrations");
|
||||
|
||||
if (!fs.existsSync(MIGRATIONS_DIR)) {
|
||||
log.error("Could not find migration directory: " + MIGRATIONS_DIR);
|
||||
|
||||
Reference in New Issue
Block a user