From 76974f676dfdf99d896595ac281a2b306d95990c Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 2 Aug 2026 08:19:46 +0200 Subject: [PATCH] fix: allow dynamic database schema access --- packages/db/collection.ts | 1 + packages/db/test/schema.spec.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/db/collection.ts b/packages/db/collection.ts index 00e5aba18..aae94d28c 100644 --- a/packages/db/collection.ts +++ b/packages/db/collection.ts @@ -1,3 +1,4 @@ +/* eslint-disable import/namespace -- Schema tables are selected by validated typed keys. */ import type { InferInsertModel } from "drizzle-orm"; import { objectEntries } from "@homarr/common"; diff --git a/packages/db/test/schema.spec.ts b/packages/db/test/schema.spec.ts index 246219547..c1f51108d 100644 --- a/packages/db/test/schema.spec.ts +++ b/packages/db/test/schema.spec.ts @@ -1,4 +1,5 @@ /* eslint-disable @typescript-eslint/no-non-null-assertion */ +/* eslint-disable import/namespace -- The test compares matching schema tables by their shared keys. */ import type { Column, InferSelectModel } from "drizzle-orm"; import type { ForeignKey as MysqlForeignKey, MySqlTableWithColumns } from "drizzle-orm/mysql-core"; import type { PgTableWithColumns, ForeignKey as PostgresqlForeignKey } from "drizzle-orm/pg-core";