Move drizzle/, dist/, and coverage/ into apps/server/ so all server-specific artifacts live alongside the source they belong to. - git mv drizzle/ → apps/server/drizzle/ - drizzle.config.ts: out → ./apps/server/drizzle - tsconfig.json: outDir → ./apps/server/dist, exclude drizzle dir - package.json: main/bin/clean point to apps/server/dist/ - vitest.config.ts: reportsDirectory → ./apps/server/coverage - .gitignore: add coverage/ entry - ensure-schema.ts: update getMigrationsPath() for new layout - docs/database-migrations.md: update drizzle/ references
13 lines
471 B
SQL
13 lines
471 B
SQL
-- Migration: Add agent_log_chunks table for DB-first agent output persistence
|
|
-- Chunks survive agent deletion (no FK to agents table)
|
|
|
|
CREATE TABLE `agent_log_chunks` (
|
|
`id` text PRIMARY KEY NOT NULL,
|
|
`agent_id` text NOT NULL,
|
|
`agent_name` text NOT NULL,
|
|
`session_number` integer DEFAULT 1 NOT NULL,
|
|
`content` text NOT NULL,
|
|
`created_at` integer NOT NULL
|
|
);--> statement-breakpoint
|
|
CREATE INDEX `agent_log_chunks_agent_id_idx` ON `agent_log_chunks` (`agent_id`);
|