Description
br 0.1.20 fails with DATABASE_ERROR when running br list on databases created with older versions of br (e.g. 0.1.14). The error does not occur with br 0.1.14.
Error
{
"error": {
"code": "DATABASE_ERROR",
"message": "Database error: internal error: no such column: source_system in table issues",
"hint": null,
"retryable": false,
"context": null
}
}
Reproduction
- Create a workspace with
br 0.1.14 and add some issues
- Upgrade to
br 0.1.20
- Run
br list in that workspace → DATABASE_ERROR
Investigation
- The
source_system column does exist in the issues table (verified via PRAGMA table_info(issues) and direct SELECT source_system FROM issues LIMIT 1)
br doctor passes all checks including schema.columns and sqlite.integrity_check
- The error is specific to
br list (and likely other commands that read issues)
- The issue appears related to the
fsqlite update in 0.1.20 — databases created with older br versions have a different column order in the issues table
Affected commands
br list
- Likely any command that queries the
issues table via fsqlite
Workaround
Downgrade to br 0.1.14:
curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/beads_rust/main/install.sh | bash -s -- --version v0.1.14
Environment
- macOS ARM64 (Apple Silicon)
- br 0.1.20 (darwin_arm64)
- Database created with br 0.1.14
Description
br 0.1.20fails withDATABASE_ERRORwhen runningbr liston databases created with older versions of br (e.g. 0.1.14). The error does not occur withbr 0.1.14.Error
{ "error": { "code": "DATABASE_ERROR", "message": "Database error: internal error: no such column: source_system in table issues", "hint": null, "retryable": false, "context": null } }Reproduction
br 0.1.14and add some issuesbr 0.1.20br listin that workspace → DATABASE_ERRORInvestigation
source_systemcolumn does exist in theissuestable (verified viaPRAGMA table_info(issues)and directSELECT source_system FROM issues LIMIT 1)br doctorpasses all checks includingschema.columnsandsqlite.integrity_checkbr list(and likely other commands that read issues)fsqliteupdate in 0.1.20 — databases created with older br versions have a different column order in theissuestableAffected commands
br listissuestable via fsqliteWorkaround
Downgrade to
br 0.1.14:curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/beads_rust/main/install.sh | bash -s -- --version v0.1.14Environment