© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
14 replies
TheSock

Handling DB migrations for desktop app sqlite db

Hi all,

I'm working on an app rn where my plan is to store data in a sqlite db in the user's local data directory (.local/share/ or %LOCALAPPDATA%). I'm wondering if anyone had some guidance on how to handle db migrations in this scenario. I have a couple of ideas but just wanted to see if anyone had any other experience doing something like this.

My current plan is to pack the migrations along with my app with a date stamp in each, and apply them on startup if necessary. This would be checked by looking at another state file that has the most recent migration version.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ EFCore SQLITE Migrations on Server
C#CC# / help
3y ago
✅ sqlite local db file
C#CC# / help
2y ago
✅ Tutorial For Desktop App Development???
C#CC# / help
3y ago
❔ Scaffold migrations from existing DB
C#CC# / help
4y ago