I had an old version of Darktable, which I uninstalled along with all its related databases. After installing the latest version, I keep encountering the following message when trying to open the app:
The database schema must be updated for appdata/local/darktable/library.db.
For large databases, this process may take a long time. Would you like to continue or exit now to create a backup?
When I choose to update the database, nothing happens—the app simply closes. This keeps repeating, and I can’t even open Darktable.
Has anyone experienced this issue? How can I fix it?
Uninstalling does not remove either the database or configuration. If you really want to get rid of them, you’ll have to do that manually.
However, darktable should be able to migrate them. Please do as Mica suggested, and share the log. Your operating system, your old and new darktable version could also be important. (‘latest’ could be the 5.0.1 release, a weekly build, a nightly build, your own build from whatever the current state of the master branch is…)
If the suggested fixes don’t resolve your problem it might help to know the OS you are using. I am on Windows and I update every week to the latest version of DT5.1 without problems. Windows asks to uninstall DT and then it installs the new version. Sometimes it will ask to update the database when I start the new version and I allow this and the process is very quick in my case.