Skip to content

Conversation

@olorin99
Copy link
Contributor

@olorin99 olorin99 commented Oct 13, 2025

Migrate from using a nosql database to an sql database. Using the drift package

Stores to migrate

  • Accounts
  • Feeds
  • Feed cache
  • Filter lists
  • Profiles
  • Server info
  • Read post cache
  • Misc
  • Drafts

Other functionallity

@olorin99
Copy link
Contributor Author

I still need to do more thorough testing and make sure all weird database states migrate across properly but otherwise this should be ready for review.

With migrating from the old database to the new one I skip over migrating the feedCache since I got some weird errors when trying and figured that since it would just be recreated automatically when a user opens a feed it wasn't necessary. Every other sembast store should be migrated over though.

@olorin99 olorin99 marked this pull request as ready for review October 17, 2025 14:26
@olorin99 olorin99 requested a review from jwr1 October 17, 2025 14:26
Store datetime as strings.
Switch isPushRegistered as non nullable and default to false.
@olorin99 olorin99 requested a review from jwr1 November 1, 2025 04:38
@jwr1
Copy link
Member

jwr1 commented Nov 1, 2025

I didn't see any other issues. After it's merged, I'll probably install a dev version on my phone just to see if I notice anything through daily use, since this is a pretty big change.

@olorin99 olorin99 requested a review from jwr1 November 3, 2025 07:01
Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

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

Thanks for working on this migration, it looks great!

@jwr1 jwr1 merged commit ccd0ded into main Nov 3, 2025
2 checks passed
@jwr1 jwr1 deleted the migrate_sql branch November 3, 2025 21:59
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.

3 participants