Skip to content

refactor(storage): remove SwiftData legacy import#929

Merged
everpcpc merged 2 commits into
mainfrom
codex/remove-swiftdata-legacy
Jul 3, 2026
Merged

refactor(storage): remove SwiftData legacy import#929
everpcpc merged 2 commits into
mainfrom
codex/remove-swiftdata-legacy

Conversation

@everpcpc

@everpcpc everpcpc commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

This removes the remaining SwiftData-only compatibility path now that KMReader's runtime storage is GRDB-backed.

Startup no longer opens the legacy SwiftData store or runs the legacy importer. The obsolete versioned SwiftData schemas and migration plan are removed, local data reset only tracks the active GRDB SQLite files, and the contributor docs now describe GRDB as the persistence layer. The GRDB migrator keeps historical migrations immutable and adds a new append-only migration to drop the old local migration marker table.

This PR also includes the requested major version bump from 5.3 to 6.0, with build 500.

Validation

  • make format
  • git diff --check origin/main...HEAD
  • SwiftData and legacy importer keyword scan returned no remaining matches in app/docs targets
  • make build

everpcpc added 2 commits July 3, 2026 22:18
Remove the SwiftData schema and legacy importer now that runtime storage is fully GRDB-backed.

Startup now only opens and migrates the GRDB database, local data reset only tracks the active SQLite store, and AGENTS documents GRDB as the persistence layer.

Add an append-only GRDB migration to drop the obsolete local migration marker table without mutating historical migrations.
@everpcpc everpcpc marked this pull request as ready for review July 3, 2026 14:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cfe3cf11c2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread KMReader/MainApp.swift
Comment thread KMReader/Core/Storage/LocalDataResetService.swift
@everpcpc everpcpc merged commit 5513006 into main Jul 3, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/remove-swiftdata-legacy branch July 3, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant