DB safety
This commit is contained in:
parent
85fa719b96
commit
5984c28d09
@ -10,7 +10,14 @@ from peewee import (
|
||||
TextField,
|
||||
)
|
||||
|
||||
db = SqliteDatabase("tasks.db")
|
||||
db = SqliteDatabase(
|
||||
"tasks.db",
|
||||
pragmas={
|
||||
"journal_mode": "wal",
|
||||
"synchronous": "normal",
|
||||
"foreign_keys": 1,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
class TaskStatus(Enum):
|
||||
|
Loading…
Reference in New Issue
Block a user