mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-29 12:06:01 +02:00
fix(sql): don't panic if no migrations were provided, fixes #84
This commit is contained in:
@@ -348,7 +348,7 @@ impl Builder {
|
||||
drop(lock);
|
||||
|
||||
app.manage(instances);
|
||||
app.manage(Migrations(Mutex::new(self.migrations.take().unwrap())));
|
||||
app.manage(Migrations(Mutex::new(self.migrations.take().unwrap_or_default())));
|
||||
|
||||
Ok(())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user