Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Run inplace upgrades after version update #2411

Merged
merged 2 commits into from
Oct 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions parity/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,13 @@ pub fn migrate(path: &Path, pruning: Algorithm, compaction_profile: CompactionPr
println!("Migration finished");
}

// update version file.
try!(update_version(path));

// run any inplace migrations for the fully upgraded database
try!(run_inplace_upgrades(consolidated_database_path(path).as_path()));

// update version file.
update_version(path)
Ok(())
}

/// Old migrations utilities
Expand Down