mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Resolve issue with migration application order (#986)
This commit is contained in:
parent
85a475eb53
commit
33b4e11b9e
|
@ -2261,7 +2261,12 @@ impl<'a> QueryServerWriteTransaction<'a> {
|
||||||
spanned!("server::migrate_5_to_6", {
|
spanned!("server::migrate_5_to_6", {
|
||||||
admin_warn!("starting 5 to 6 migration.");
|
admin_warn!("starting 5 to 6 migration.");
|
||||||
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
|
let filter = filter!(f_eq("uuid", (*PVUUID_DOMAIN_INFO).clone()));
|
||||||
let modlist = ModifyList::new_purge("domain_token_key");
|
let mut modlist = ModifyList::new_purge("domain_token_key");
|
||||||
|
// We need to also push the version here so that we pass schema.
|
||||||
|
modlist.push_mod(Modify::Present(
|
||||||
|
AttrString::from("version"),
|
||||||
|
Value::Uint32(0),
|
||||||
|
));
|
||||||
self.internal_modify(&filter, &modlist)
|
self.internal_modify(&filter, &modlist)
|
||||||
// Complete
|
// Complete
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue