Error: failed to apply migrations: error: found 1 missing migrations before current version #51

Closed
opened 2026-02-16 17:24:58 -05:00 by yindo · 2 comments
Owner

Originally created by @mtimbs on GitHub (Jun 13, 2025).

On updating to latest version I did a rm -rf $HOME/.opencode and then re-installed from scratch with curl -fsSL https://opencode.ai/install | bash

After trying to launch open code I am met with this error. Assuming some state is persisting somewhere referencing a migration I deleted.

Error: failed to apply migrations: error: found 1 missing migrations before current version 20250515105448:
version 20250513000000: migrations/20250513000000_initial.sql

I will try and search the code later to figure out if I can manually resolve this. Will update issue with solution if I find one incase others hit it

Originally created by @mtimbs on GitHub (Jun 13, 2025). On updating to latest version I did a `rm -rf $HOME/.opencode` and then re-installed from scratch with `curl -fsSL https://opencode.ai/install | bash` After trying to launch open code I am met with this error. Assuming some state is persisting somewhere referencing a migration I deleted. Error: failed to apply migrations: error: found 1 missing migrations before current version 20250515105448: version 20250513000000: migrations/20250513000000_initial.sql I will try and search the code later to figure out if I can manually resolve this. Will update issue with solution if I find one incase others hit it
yindo closed this issue 2026-02-16 17:24:58 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 13, 2025):

i think it's likely it's still running the old version of opencode - we don't use sqlite at all anymore

@thdxr commented on GitHub (Jun 13, 2025): i think it's likely it's still running the old version of opencode - we don't use sqlite at all anymore
Author
Owner

@mtimbs commented on GitHub (Jun 14, 2025):

Oh interesting. I will nuke and try again then. Skill issue not a GitHub issue

Edit: Can confirm this worked.

@mtimbs commented on GitHub (Jun 14, 2025): Oh interesting. I will nuke and try again then. Skill issue not a GitHub issue Edit: Can confirm this worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#51