diff options
| author | JustZvan <justzvan@justzvan.xyz> | 2026-03-30 13:10:26 +0200 |
|---|---|---|
| committer | JustZvan <justzvan@justzvan.xyz> | 2026-03-30 13:10:26 +0200 |
| commit | 4f34bdf4de0d847591faa3e6981eafdf2b80a0b7 (patch) | |
| tree | f2dcb99cec464f0576a2f9815ce81afd866f485c /vitest.setup.ts | |
| parent | 045c533fa3f5ff958829ea412cff647de1ebadcd (diff) | |
feat: add gallery scanning
Diffstat (limited to 'vitest.setup.ts')
| -rw-r--r-- | vitest.setup.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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" ( |