mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-04 11:43:57 +08:00
refactor(database): complete prerequisite B
This commit is contained in:
@@ -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()))?;
|
||||
|
||||
Reference in New Issue
Block a user