mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-10-27 08:20:02 +02:00
initial mysql support
This commit is contained in:
committed by
Nils Domrose
parent
badd22ac3d
commit
ff759397f6
@@ -191,7 +191,11 @@ fn check_web_vault() {
|
||||
// https://docs.rs/diesel_migrations/*/diesel_migrations/macro.embed_migrations.html
|
||||
#[allow(unused_imports)]
|
||||
mod migrations {
|
||||
embed_migrations!();
|
||||
|
||||
#[cfg(feature = "sqlite")]
|
||||
embed_migrations!("migrations/sqlite");
|
||||
#[cfg(feature = "mysql")]
|
||||
embed_migrations!("migrations/mysql");
|
||||
|
||||
pub fn run_migrations() {
|
||||
// Make sure the database is up to date (create if it doesn't exist, or run the migrations)
|
||||
|
||||
Reference in New Issue
Block a user