Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/server/db/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export function initDb(dbPath: string): DatabaseSync {
if (!jobCols.includes('use_worktree')) {
db.exec('ALTER TABLE jobs ADD COLUMN use_worktree INTEGER NOT NULL DEFAULT 0');
}
if (!jobCols.includes('archived_at')) {
db.exec('ALTER TABLE jobs ADD COLUMN archived_at INTEGER');
}

// Projects table
db.exec(`
Expand Down Expand Up @@ -309,9 +312,6 @@ export function initDb(dbPath: string): DatabaseSync {
if (!jobCols.includes('review_parent_job_id')) {
db.exec('ALTER TABLE jobs ADD COLUMN review_parent_job_id TEXT');
}
if (!jobCols.includes('archived_at')) {
db.exec('ALTER TABLE jobs ADD COLUMN archived_at INTEGER');
}
if (!jobCols.includes('created_by_agent_id')) {
db.exec('ALTER TABLE jobs ADD COLUMN created_by_agent_id TEXT');
}
Expand Down