mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-23 08:32:45 -05:00
Cannot run migration with sqlite 3.11.0 on Ubuntu #4173
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @timaschew on GitHub (Dec 20, 2019).
I have sqlite3 version 3.11.0 (Ubuntu doesn't have any newer version) and all the migrations scrips where a column is renamed are not working (syntax error).
On StackOverflow I found this: https://stackoverflow.com/a/56260765/736518
So can I just rename the table and create a new one and copy the rows?
Do I need to recreate any indexes, viewers or triggers? If yes, how do I do this?
BTW: I've tried to install the Precompiled Binaries for Linux but could not execute them:
bash: ./sqlite3: No such file or directory@dani-garcia commented on GitHub (Dec 23, 2019):
We are using a bundled SQLite version that supports that functionality, are you trying to run the scripts by hand? Bitwarden_rs runs them automatically.
@timaschew commented on GitHub (Dec 23, 2019):
🤣 yes I've tried to run them manually.
Great then I will just upgrade the Dockerfile. Thanks!