sqlite3: switch to microsoft/vscode fork
Mapbox apparently lost interest in maintaining the package. It still forces us to an outdated node-gyp version which also makes python2 necessary which is slowly getting removed from various OSes (Fedora, Arch...) Microsoft started their maintained fork for vscode, so let's use that
This commit is contained in:
parent
e0bbf19d9d
commit
24d99fc294
|
@ -69,7 +69,7 @@
|
|||
"yarn": "1.22.17"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"sqlite3": "5.0.2"
|
||||
"@vscode/sqlite3": "^5.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.16.0",
|
||||
|
|
|
@ -9,13 +9,11 @@ const Msg = require("../../models/msg");
|
|||
let sqlite3;
|
||||
|
||||
try {
|
||||
sqlite3 = require("sqlite3");
|
||||
sqlite3 = require("@vscode/sqlite3");
|
||||
} catch (e) {
|
||||
Helper.config.messageStorage = Helper.config.messageStorage.filter((item) => item !== "sqlite");
|
||||
|
||||
log.error(
|
||||
"Unable to load node-sqlite3 module. See https://github.com/mapbox/node-sqlite3/wiki/Binaries"
|
||||
);
|
||||
log.error("Unable to load node-sqlite3 module", e);
|
||||
}
|
||||
|
||||
const currentSchemaVersion = 1520239200;
|
||||
|
|
Loading…
Reference in New Issue