mirror of
https://github.com/sortedcord/omnia.git
synced 2026-07-22 20:12:48 +05:30
fix: SET PRAGMA foreign keys within the constructor
This commit is contained in:
@@ -7,8 +7,6 @@ const DB_PATH = path.resolve("/home/sortedcord/Projects/omnia_umbrella/omnia/omn
|
||||
|
||||
function getRepo() {
|
||||
const db = new Database(DB_PATH);
|
||||
// Enable foreign keys
|
||||
db.exec("PRAGMA foreign_keys = ON;");
|
||||
return { repo: new SQLiteRepository(db), db };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user