From bc73fcebd3a986ea2e9d96a5918511bdc6185a16 Mon Sep 17 00:00:00 2001 From: donpat1to Date: Tue, 28 Oct 2025 17:39:45 +0100 Subject: [PATCH] added pragma statements in .sql --- backend/src/database/schema.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/src/database/schema.sql b/backend/src/database/schema.sql index 452036e..10dc01d 100644 --- a/backend/src/database/schema.sql +++ b/backend/src/database/schema.sql @@ -148,4 +148,10 @@ CREATE INDEX IF NOT EXISTS idx_scheduled_shifts_date_time ON scheduled_shifts(da CREATE INDEX IF NOT EXISTS idx_scheduled_shifts_required_employees ON scheduled_shifts(required_employees); CREATE INDEX IF NOT EXISTS idx_shift_assignments_employee ON shift_assignments(employee_id); CREATE INDEX IF NOT EXISTS idx_shift_assignments_shift ON shift_assignments(scheduled_shift_id); -CREATE INDEX IF NOT EXISTS idx_employee_availability_employee_plan ON employee_availability(employee_id, plan_id); \ No newline at end of file +CREATE INDEX IF NOT EXISTS idx_employee_availability_employee_plan ON employee_availability(employee_id, plan_id); + +PRAGMA journal_mode = WAL; +PRAGMA synchronous = NORMAL; +PRAGMA foreign_keys = ON; +PRAGMA secure_delete = ON; +PRAGMA auto_vacuum = INCREMENTAL; \ No newline at end of file