Commit Graph

4 Commits

Author SHA1 Message Date
fullex
11be90175f fix(drizzle-config): exclude test files from schema glob
The previous glob `./src/main/data/db/schemas/*` matched the
`__tests__` directory, and drizzle-kit's `prepareFilenames` expands any
matched directory by reading its immediate files regardless of
extension. That pulled `_columnHelpers.test.ts` into the schema load
path, and its `import ... from 'vitest'` blew up because drizzle-kit
loads schemas via CJS `require()` (vitest is ESM-only).

Switch to a recursive pattern that also excludes `*.test.ts` by name,
so the config tolerates future subdirectory-organised schemas without
re-introducing the same class of bug.
2026-04-21 23:11:25 -07:00
fullex
21e40db086 mv dir to data 2025-08-09 14:30:24 +08:00
fullex
a748162e67 chore: update yarn.lock and refactor database schema
- Added `get-tsconfig` dependency version 4.10.1 to yarn.lock.
- Updated schema path in sqlite-drizzle.config.ts from './src/main/db/schema/*' to './src/main/db/schemas/*'.
- Removed unused files: columnHelpers.ts, preference.ts, seed/index.ts, and seed/preferenceSeed.ts to clean up the codebase.
2025-05-27 12:09:08 +08:00
fullex
9105e0f5c1 db init 2025-05-26 08:30:22 +08:00