1
0

feat: schema versioning with v2 migration (loans, last_played_at)

This commit is contained in:
2026-09-03 20:43:33 +02:00
parent bc3db9e4f7
commit 3bdbd8315c
4 changed files with 108 additions and 3 deletions

View File

@@ -9,11 +9,14 @@ import type { FastifyInstance } from 'fastify'
export function testConfig(): Config {
// artworkDir must be a real writable directory (cached images land there)
const artworkDir = mkdtempSync(path.join(tmpdir(), 'rs-art-'))
// backupsDir must be a real writable directory (backup files land there)
const backupsDir = mkdtempSync(path.join(tmpdir(), 'rs-bak-'))
// dataDir must be a real writable directory (release-cache payloads land there)
const dataDir = mkdtempSync(path.join(tmpdir(), 'rs-data-'))
return {
dataDir,
artworkDir,
backupsDir,
dbPath: ':memory:',
port: 0,
sessionSecret: 'test-secret-test-secret-test-secret-1234',