Every instance of sqlite database should have foreign_keys constraints on
This commit is contained in:
@@ -6,6 +6,7 @@ class SqliteDatabase {
|
||||
constructor(host) {
|
||||
this.host = host;
|
||||
this.connection = new sqlite3.Database(this.host);
|
||||
this.execute('pragma foreign_keys = on;');
|
||||
this.schemaDirectory = path.join(__dirname, 'schemas');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user