opencode/packages/opencode
Dax Raad a48a5a3462 core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance
This replaces the previous manual JSON file system with standard Drizzle migrations, enabling:
- Proper database schema migrations with timestamp-based versioning
- Batched migration for faster migration of large datasets
- Better data integrity with proper table schemas instead of JSON blobs
- Easier database upgrades and rollback capabilities

Migration changes:
- Todo table now uses individual columns with composite PK instead of JSON blob
- Share table removes unused download share data
- Session diff table moved from database table to file storage
- All migrations now use proper Drizzle format with per-folder layout

Users will see a one-time migration on next run that migrates existing JSON data to the new SQLite database.
2026-01-27 12:36:05 -05:00
..
bin fix: windows install (#4293) 2025-11-13 12:22:07 -06:00
migration/20260127173238_melted_union_jack core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance 2026-01-27 12:36:05 -05:00
script tui: upgrade database migration system to drizzle migrator 2026-01-25 22:27:04 -05:00
src core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance 2026-01-27 12:36:05 -05:00
test core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance 2026-01-27 12:36:05 -05:00
.gitignore get rid of models.dev macro 2026-01-24 12:27:13 -05:00
AGENTS.md core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance 2026-01-27 12:36:05 -05:00
bunfig.toml feat: add variants toggle (#6325) 2025-12-29 21:43:50 -06:00
Dockerfile add ARM64 Docker image support (#5483) 2025-12-13 13:01:59 -06:00
drizzle.config.ts core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance 2026-01-27 12:36:05 -05:00
package.json core: migrate from custom JSON storage to standard Drizzle migrations to improve database reliability and performance 2026-01-27 12:36:05 -05:00
parsers-config.ts feat(highlight): add nix syntax highlighting (#6386) 2025-12-29 15:53:41 -06:00
README.md sync 2025-05-30 20:48:36 -04:00
sst-env.d.ts wip: zen 2025-12-02 18:36:15 -05:00
tsconfig.json try tsgo 2025-10-14 18:30:32 -04:00

js

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.2.12. Bun is a fast all-in-one JavaScript runtime.