From 3bf2474e5a4b99da78346315958b4532d81d733e Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 23 Sep 2026 18:58:34 +0000 Subject: [PATCH] use explicit scheme else DB is not created and container fails --- Migrating-from-MariaDB-(MySQL)-to-SQLite.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Migrating-from-MariaDB-(MySQL)-to-SQLite.md b/Migrating-from-MariaDB-(MySQL)-to-SQLite.md index 475354a..c8b5dd9 100644 --- a/Migrating-from-MariaDB-(MySQL)-to-SQLite.md +++ b/Migrating-from-MariaDB-(MySQL)-to-SQLite.md @@ -19,7 +19,7 @@ Well, that is possible, but there could be some quirks which we do not know of u Make sure you are using the same version of Vaultwarden (Docker or custom build) for both SQLite and MariaDB, don't update the Docker image in-between these steps. To migrate to SQLite we first need to have a SQLite database file which we can use to transfer the data to. For this file to be created you need to stop your current Vaultwarden instance, and configure it to use SQLite. -You can do this by changing your `DATABASE_URL` from `DATABASE_URL=mysql://:@mariadb/vaultwarden` to `DATABASE_URL=/data/db.sqlite3` for example. ( `/data` is the internal path within the Docker container of the `-v` volume you use). +You can do this by changing your `DATABASE_URL` from `DATABASE_URL=mysql://:@mariadb/vaultwarden` to `DATABASE_URL=sqlite:///data/db.sqlite3` for example. ( `/data` is the internal path within the Docker container of the `-v` volume you use). After you have changed the config, start Vaultwarden and it should show you that it executed a few migrations by checking the logs for lines which start with `Executing migration script ....`.