mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 03:52:48 +05:30
fix: SET PRAGMA foreign keys within the constructor
This commit is contained in:
@@ -9,6 +9,8 @@ export class SQLiteRepository {
|
||||
|
||||
constructor(db: Database.Database) {
|
||||
this.db = db;
|
||||
// Enable foreign keys for cascading deletes
|
||||
this.db.exec("PRAGMA foreign_keys = ON;");
|
||||
this.initializeSchema();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user