From 47da84f986ca80a650a14ba254ea0e9ec56e08d9 Mon Sep 17 00:00:00 2001 From: Yiling-J Date: Thu, 19 Feb 2026 17:31:49 +0800 Subject: [PATCH] Simplify SQLite setup instructions in AGENTS.md Removed redundant information about SQLite database configuration and environment variables. --- AGENTS.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7ef0348..4afb260 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -116,7 +116,7 @@ Whenever you modify the `prisma/schema.prisma` file, you **must** generate a cor Instead, follow this workflow: -1. Ensure you have a local SQLite database configured (e.g., via `.env` setting `DATABASE_URL="file:./dev.db"`). +1. Ensure you have a local SQLite database configured. 2. Run the migration command: ```bash bun x prisma migrate dev --name @@ -144,11 +144,6 @@ Instead, follow this workflow: - Exception: File names generated by `FileService` may still use `ulid()` internally, but this is separate from the database ID. - **Sorting**: All list APIs must order results by `id` descending (`orderBy: { id: 'desc' }`) to ensure consistent, time-based sorting (since ULIDs are sortable). Do not sort by `createdAt` as it is not indexed. -## Environment Variables - -- `.env`: Development environment variables (`DATABASE_URL="file:./dev.db"`, `API_KEY="..."`). -- `.env.test`: Test environment variables (`DATABASE_URL="file:./test.db"`). - ## Known Issues - `bun test` module mocking can be sticky across test files running in the same process/worker. Use the dynamic import workaround in Service tests.