mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-20 07:13:51 +02:00
Small changes and fixes
This commit is contained in:
@@ -2474,8 +2474,8 @@ class Database {
|
||||
});
|
||||
}
|
||||
|
||||
fixBrokenNotifications() {
|
||||
sqliteService.executeNonQuery(
|
||||
async fixBrokenNotifications() {
|
||||
await sqliteService.executeNonQuery(
|
||||
`DELETE FROM ${Database.userPrefix}_notifications WHERE (created_at is null or created_at = '')`
|
||||
);
|
||||
}
|
||||
@@ -2513,6 +2513,14 @@ class Database {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async vacuum() {
|
||||
await sqliteService.executeNonQuery('VACUUM');
|
||||
}
|
||||
|
||||
async setWal() {
|
||||
await sqliteService.executeNonQuery('PRAGMA journal_mode=WAL');
|
||||
}
|
||||
}
|
||||
|
||||
var self = new Database();
|
||||
|
||||
Reference in New Issue
Block a user