Skip to content

fix(storage): default workspace time migration#26556

Merged
kitlangton merged 2 commits into
devfrom
fix/workspace-time-migration-default
May 9, 2026
Merged

fix(storage): default workspace time migration#26556
kitlangton merged 2 commits into
devfrom
fix/workspace-time-migration-default

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • Add a SQL default to the workspace.time_used migration so existing workspace rows can migrate on SQLite.
  • Add a focused reproducer that applies migrations up to the bad migration, inserts an existing workspace row, and verifies the remaining migrations preserve it with time_used = 0.

Verification

  • bun test --timeout 5000 test/storage/workspace-time-migration.test.ts
  • bun typecheck

Note: file-scoped oxlint is currently blocked by the repo .oxlintrc error: options.typeAware is only supported in the root config.

@kitlangton kitlangton merged commit 57efec4 into dev May 9, 2026
6 of 9 checks passed
@kitlangton kitlangton deleted the fix/workspace-time-migration-default branch May 9, 2026 18:18
katosun2 pushed a commit to katosun2/opencode that referenced this pull request May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant