mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-08 08:42:17 +02:00
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"
|
"yarn": "1.22.17"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"sqlite3": "5.0.2"
|
"@vscode/sqlite3": "^5.0.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.16.0",
|
"@babel/core": "7.16.0",
|
||||||
|
|
|
@ -9,13 +9,11 @@ const Msg = require("../../models/msg");
|
||||||
let sqlite3;
|
let sqlite3;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
sqlite3 = require("sqlite3");
|
sqlite3 = require("@vscode/sqlite3");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
Helper.config.messageStorage = Helper.config.messageStorage.filter((item) => item !== "sqlite");
|
Helper.config.messageStorage = Helper.config.messageStorage.filter((item) => item !== "sqlite");
|
||||||
|
|
||||||
log.error(
|
log.error("Unable to load node-sqlite3 module", e);
|
||||||
"Unable to load node-sqlite3 module. See https://github.com/mapbox/node-sqlite3/wiki/Binaries"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentSchemaVersion = 1520239200;
|
const currentSchemaVersion = 1520239200;
|
||||||
|
|
Loading…
Reference in a new issue