[PR #13874] feat(cli): add db migrate command for JSON to SQLite migration #14850

Closed
opened 2026-02-16 18:19:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13874

State: closed
Merged: Yes


Summary

  • Added opencode db migrate command to manually trigger JSON to SQLite migration
  • Uses same progress UI as the automatic migration on first run
  • Merges with existing data (uses onConflictDoNothing() to avoid overwrites)
  • Shows progress bar with percentage and item counts

Changes

  • Added MigrateCommand to src/cli/cmd/db.ts
  • Integrated JsonMigration.run() with TTY progress display
  • Command added to db subcommand builder
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13874 **State:** closed **Merged:** Yes --- ## Summary - Added `opencode db migrate` command to manually trigger JSON to SQLite migration - Uses same progress UI as the automatic migration on first run - Merges with existing data (uses `onConflictDoNothing()` to avoid overwrites) - Shows progress bar with percentage and item counts ## Changes - Added `MigrateCommand` to `src/cli/cmd/db.ts` - Integrated `JsonMigration.run()` with TTY progress display - Command added to db subcommand builder
yindo added the pull-request label 2026-02-16 18:19:36 -05:00
yindo closed this issue 2026-02-16 18:19:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14850