I recently upgraded my security on my instance of Vikunja, and decided to just do an export of my local account data, then import it to the newly created OIDC. I have already been through (most) of the threads regarding migration, like this one:
I dont know too much about database manipulation, so thought just simply migrating the tasks would do the trick. However, post import it seems I have two of each board on the imported projects:
I double checked by creating a new project in my OIDC account, and dont have the issue with newly created projects, just imported ones:
Created project boards
Im sure I could figure out the db manipulation, i just migrated a mysql db user using DBeaver, just thought I might reach out to see if there were a simple solution I was missing
Can confirm this worked, @bruno, I had to delete and reimport my old export, so if you created any new projects that you want migrated, back that up as well, I had just a few tasks so I am just rebuilding them.
Could you help me with how to do this update? I use Vikunja on a Docker, how do I update it to the unstable build? Regarding the backup, just do that export again from within the database, correct? the same is in the documentation
There’s one small issue I believe - when Vikunja starts, it performs database migrations to migrate the database schema (if needed) to the current version. In your steps, you’ve imported data after Vikunja started, so the database migrations where completed and then you inserted an old database again.
You should make a copy of the database as a backup, then simply update to unstable (your steps 2 and 3, although --force-recreate isn’t neccessary) and skip step 4, as Vikunja would automatically update the database in place.