Preserving Sqlite Database File During Updates #274
Unanswered
EricTurnerDev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing a Nextron app that stores data in a SQLite database file. When a user installs an updated version of my app, the database file is deleted and a new one is created, so any previous data in the database is lost. I would like to prevent that file from being deleted during an upgrade.
Right now in
main/background.ts
I create the database file in the current directory (e.g../mydatabase.db
) on startup if the file doesn't already exist.I think there are two options here:
customRemoveFiles
property to the electron uninstaller, but I'm unsure how to use it, or even if it could be used in a Nextron app.Any suggestions? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions