From 4f34bdf4de0d847591faa3e6981eafdf2b80a0b7 Mon Sep 17 00:00:00 2001 From: JustZvan Date: Mon, 30 Mar 2026 13:10:26 +0200 Subject: feat: add gallery scanning --- vitest.setup.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vitest.setup.ts') diff --git a/vitest.setup.ts b/vitest.setup.ts index e24e32e..60f7ae3 100644 --- a/vitest.setup.ts +++ b/vitest.setup.ts @@ -37,6 +37,8 @@ vi.mock("./src/db/db", async () => { "devEnabled" BOOLEAN DEFAULT false ); + CREATE TYPE "galleryScanningMode" AS ENUM ('delete', 'notify', 'none'); + CREATE TABLE IF NOT EXISTS "deviceConfig" ( "id" SERIAL PRIMARY KEY, "device_id" INTEGER NOT NULL UNIQUE, @@ -46,7 +48,8 @@ vi.mock("./src/db/db", async () => { "new_contact_alerts" BOOLEAN NOT NULL DEFAULT true, "block_strangers" BOOLEAN NOT NULL DEFAULT false, "notify_dangerous_messages" BOOLEAN NOT NULL DEFAULT true, - "notify_new_contact_added" BOOLEAN NOT NULL DEFAULT true + "notify_new_contact_added" BOOLEAN NOT NULL DEFAULT true, + "galleryScanningMode" "galleryScanningMode" NOT NULL DEFAULT 'notify' ); CREATE TABLE IF NOT EXISTS "alerts" ( -- cgit v1.2.3