diff --git a/templates/database.txt b/templates/database.txt index 473b3604..ce904039 100644 --- a/templates/database.txt +++ b/templates/database.txt @@ -42,6 +42,11 @@ const databaseConfig: DatabaseConfig = { connection: { filename: Application.tmpPath('db.sqlite3'), }, + pool: { + afterCreate: (conn, cb) => { + conn.run('PRAGMA foreign_keys=true', cb) + } + }, migrations: { naturalSort: true, },