fix(opencode): repair missing account.org_id column on startup#16382
fix(opencode): repair missing account.org_id column on startup#16382SergioChan wants to merge 18 commits intoanomalyco:betafrom
Conversation
…del family to reduce noise in list
…dering for prompt loop exit and message rendering
…ith dual-schema support
…e adding multi-account workspace auth
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
Thanks for the compliance check. I can't run Bun locally in this environment ( |
…es into the tui
…r cli and desktop
bad6714 to
7723159
Compare
7c70fd0 to
a12fce4
Compare
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Issue for this PR
Closes #16378
Type of change
What does this PR do?
Some beta users have an existing
accounttable without the newerorg_idcolumn, which causes startup queries likeactive()to fail withSQLiteError: no such column: account.org_id.This adds a small startup schema repair in
Database.Client:accountexistsorg_idis missing, runALTER TABLE account ADD COLUMN org_id textThis is idempotent and only applies to affected legacy databases.
How did you verify your code works?
I validated the migration-repair path by code inspection against the issue stack trace and the current beta migration sequence (
20260228203230_blue_harpoonintroducesorg_id).I could not run the local Bun test/build commands in this environment because
bunis not installed in the runner (/bin/bash: bun: command not found).Screenshots / recordings
Not a UI change.
Checklist