mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-28 19:49:23 +00:00
Fix migrate! macro
This commit is contained in:
parent
85ff651ba1
commit
8b866bb23d
@ -60,8 +60,9 @@ impl Migrator {
|
||||
}
|
||||
|
||||
/// Specify should ignore applied migrations that missing in the resolved migrations.
|
||||
pub fn set_ignore_missing(&mut self, ignore_missing: bool) {
|
||||
pub fn set_ignore_missing(&mut self, ignore_missing: bool) -> &Self {
|
||||
self.ignore_missing = ignore_missing;
|
||||
self
|
||||
}
|
||||
|
||||
/// Get an iterator over all known migrations.
|
||||
|
||||
@ -105,7 +105,8 @@ pub(crate) fn expand_migrator_from_dir(dir: LitStr) -> crate::Result<TokenStream
|
||||
::sqlx::migrate::Migrator {
|
||||
migrations: ::std::borrow::Cow::Borrowed(&[
|
||||
#(#migrations),*
|
||||
])
|
||||
]),
|
||||
ignore_missing: false,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user