fix(sql): don't panic if no migrations were provided, fixes #84

pull/87/head
Fabian-Lars 2 years ago committed by GitHub
parent 4b098fb518
commit 42b145e0ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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(())
})

Loading…
Cancel
Save