Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 0 additions & 3 deletions src/main/presenter/sqlitePresenter/tables/newSessions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export class NewSessionsTable extends BaseTable {
title TEXT NOT NULL,
project_dir TEXT,
is_pinned INTEGER DEFAULT 0,
is_draft INTEGER NOT NULL DEFAULT 0,
active_skills TEXT NOT NULL DEFAULT '[]',
disabled_agent_tools TEXT NOT NULL DEFAULT '[]',
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL
Comment thread
zerob13 marked this conversation as resolved.
Outdated
);
Expand Down
5 changes: 5 additions & 0 deletions test/main/presenter/sqlitePresenter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ describe('SQLitePresenter legacy schema bootstrap', () => {
expect(columnNames.has('is_draft')).toBe(true)
expect(columnNames.has('active_skills')).toBe(true)
expect(columnNames.has('disabled_agent_tools')).toBe(true)

const versions = checkDb
.prepare('SELECT version FROM schema_versions ORDER BY version ASC')
.all() as Array<{ version: number }>
expect(versions.map((row) => row.version)).toEqual(expect.arrayContaining([11, 15, 16]))
checkDb.close()
})
})
Loading