Skip to content

fix: Skip migrations for JSONL storage in infer init#376

Merged
edenreich merged 1 commit intomainfrom
fix/jsonl-migrations-372
Jan 24, 2026
Merged

fix: Skip migrations for JSONL storage in infer init#376
edenreich merged 1 commit intomainfrom
fix/jsonl-migrations-372

Conversation

@edenreich
Copy link
Contributor

Description

Fixes #372

During infer init, the CLI was running database migrations even when JSONL storage was configured, despite the message stating that 'JSONL storage does not require migrations'.

Changes

  • Added handleMigrations() function that checks the storage type before running migrations
  • Only executes migrations for SQLite/PostgreSQL backends
  • For JSONL storage, shows appropriate message and skips migration step entirely

Testing

The fix ensures that:

  1. When JSONL storage is configured, migrations are skipped with appropriate message
  2. When SQLite/PostgreSQL storage is configured, migrations run as expected
  3. The --skip-migrations flag continues to work as before

Fixes #372

During infer init, the CLI was running database migrations even when JSONL storage was configured, despite the message stating that 'JSONL storage does not require migrations'.

The fix adds a handleMigrations() function that checks the storage type before running migrations, only executing them for SQLite/PostgreSQL backends.
@edenreich edenreich merged commit 3793345 into main Jan 24, 2026
5 checks passed
@edenreich edenreich deleted the fix/jsonl-migrations-372 branch January 24, 2026 13:30
ig-semantic-release-bot bot pushed a commit that referenced this pull request Jan 24, 2026
## [0.99.0](v0.98.0...v0.99.0) (2026-01-24)

### 🚀 Features

* Add model context system for improved project awareness ([#375](#375)) ([1afb26b](1afb26b))

### 🐛 Bug Fixes

* Skip migrations for JSONL storage in infer init ([#376](#376)) ([3793345](3793345)), closes [#372](#372)

### ♻️ Code Refactoring

* Improve the testability of conversation optimizer ([#374](#374)) ([4c7c428](4c7c428))
@ig-semantic-release-bot
Copy link

🎉 This PR is included in version 0.99.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Migrations run unnecessarily when JSONL storage is configured

1 participant