refactor(database): complete prerequisite B

This commit is contained in:
SaladDay
2026-08-01 11:44:50 +00:00
parent 22c010079a
commit 2841811700
5 changed files with 1258 additions and 139 deletions
+2 -1
View File
@@ -517,7 +517,8 @@ impl Database {
Connection::open(file.path()).map_err(|error| AppError::Database(error.to_string()))?;
connection
.execute_batch(
"PRAGMA foreign_keys = ON;
"PRAGMA auto_vacuum = INCREMENTAL;
PRAGMA foreign_keys = ON;
PRAGMA trusted_schema = OFF;",
)
.map_err(|error| AppError::Database(error.to_string()))?;