diff options
| author | Zvan Milisavljević <112730082+JustZvan@users.noreply.github.com> | 2026-03-30 13:13:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-30 13:13:19 +0200 |
| commit | 3a4611cf51a1f5a5e6f3dd8b12f0fb31eda1a950 (patch) | |
| tree | f2dcb99cec464f0576a2f9815ce81afd866f485c /vitest.setup.ts | |
| parent | 7beacb50b1f3febf23abbcc41b8d5602cf12a28b (diff) | |
| parent | 4f34bdf4de0d847591faa3e6981eafdf2b80a0b7 (diff) | |
feat: add gallery scanning (#1)
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" ( |