-
-
Notifications
You must be signed in to change notification settings - Fork 0
T-229: V003 migration terminal_sessions table #124
Copy link
Copy link
Open
Labels
priority:P0Priority P0 — must land in sprintPriority P0 — must land in sprintscope: infrainfrastructure/ adapters (libsql, git2, pty, etc.)infrastructure/ adapters (libsql, git2, pty, etc.)sprint:2026-05-14Sprint 2026-05-14 (Sprint 3) — terminals & PTY foundationSprint 2026-05-14 (Sprint 3) — terminals & PTY foundationtrack:ATrack A — backend (Rust domain/application/infra)Track A — backend (Rust domain/application/infra)type:featureFeature work (new capability)Feature work (new capability)
Metadata
Metadata
Assignees
Labels
priority:P0Priority P0 — must land in sprintPriority P0 — must land in sprintscope: infrainfrastructure/ adapters (libsql, git2, pty, etc.)infrastructure/ adapters (libsql, git2, pty, etc.)sprint:2026-05-14Sprint 2026-05-14 (Sprint 3) — terminals & PTY foundationSprint 2026-05-14 (Sprint 3) — terminals & PTY foundationtrack:ATrack A — backend (Rust domain/application/infra)Track A — backend (Rust domain/application/infra)type:featureFeature work (new capability)Feature work (new capability)
Goal
Add
V003__terminal_sessions.sqlmigration creating theterminal_sessionstable per ARCHI §11.4 so future sprints can serialise xterm scrollback + metadata across restarts. This sprint only creates the table; the actual write path lands in a follow-up issue (see T-237 risks).Columns mirror ARCHI sample:
id,project_id(FK projects),cwd,shell_program,cols,rows,serialize_buffer(BLOB, optional),created_at,updated_at.Acceptance criteria
src-tauri/src/infrastructure/persistence/migrations/V003__terminal_sessions.sqlCREATE TABLE IF NOT EXISTS terminal_sessionswith all columns + indexes (idx_terminal_sessions_project)project_idforeign key referencesprojects(id)pool::migrateruns V003 in-order without panicking on a fresh DBpool.rsruns all migrations against in-memory libsql and assertsterminal_sessionsexistsFiles to create/modify
src-tauri/src/infrastructure/persistence/migrations/V003__terminal_sessions.sqlsrc-tauri/src/infrastructure/persistence/pool.rs(migration list)References
Dependencies
None — can run in parallel with T-227.