import { IMPOSSIBLE, VersionInfo } from '@start9labs/start-sdk' /** * v1.0.0:5 — internal cleanup, no user-facing change. * * Removes the `caloriesBurned` raw-SQL workaround from lib/prisma.ts. * That workaround was a vestige of an early Prisma client generation * that didn't include the column; schema and client have been aligned * for several releases. The three exported helpers * (getCaloriesBurned, setCaloriesBurned, getCaloriesBurnedBulk) and * every caller now use normal type-safe Prisma queries. * * Net effect for users: zero. Net effect for the codebase: ~30 lines * of $queryRawUnsafe / $executeRawUnsafe deleted, three call sites * (workouts list, workout detail GET/PATCH, settings/export-csv) * simplified to plain `caloriesBurned` field references with full * TS type checking. * * No schema changes, no migration, no config changes. */ export const v_1_0_0_5 = VersionInfo.of({ version: '1.0.0:5', releaseNotes: { en_US: 'Internal cleanup: removes the legacy caloriesBurned raw-SQL workaround from lib/prisma.ts and switches every caller to type-safe Prisma queries. No user-facing changes; no migration; existing /data is untouched.', }, migrations: { up: async () => {}, down: IMPOSSIBLE, }, })