mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Fix preprocessor not being used for initial schema
This commit is contained in:
@@ -50,7 +50,7 @@ export class Sqlite implements IDatabase {
|
||||
this.db = new Sqlite3(this.config.dbPath, {readonly: this.config.readOnly, fileMustExist: !this.config.createDbIfNotExists});
|
||||
|
||||
if (this.config.createDbIfNotExists && !this.config.readOnly && fs.existsSync(this.config.dbSchemaFileName)) {
|
||||
this.db.exec(fs.readFileSync(this.config.dbSchemaFileName).toString());
|
||||
this.db.exec(Sqlite.processUpgradeQuery(fs.readFileSync(this.config.dbSchemaFileName).toString()));
|
||||
}
|
||||
|
||||
if (!this.config.readOnly) {
|
||||
|
||||
Reference in New Issue
Block a user