diff --git a/lib/database/open b/lib/database/open index 3abf236..9d9fdc3 100644 --- a/lib/database/open +++ b/lib/database/open @@ -18,5 +18,8 @@ openDatabase() { echo 'PRAGMA foreign_keys = ON;' >&3 echo 'PRAGMA recursive_triggers = ON;' >&3 echo 'PRAGMA temp_store = 2;' >&3 + echo 'PRAGMA locking_mode = EXCLUSIVE;' >&3 + read -u4 + unset REPLY checkDatabaseVersion }