pub fn db_sled_migration_update(cargo_pkg_version: &str) {
    let pkg_semver = unwrap!(semver::Version::parse(&cargo_pkg_version));
    let db_version = unwrap!(db_metadata_mod::get_version());
    let db_semver = unwrap!(semver::Version::parse(&db_version));
    // log::info!("db_sled_migration_update pkg={}, db={}", &pkg_semver, &db_semver);

    upgrade_to_2021_1228_1255(&pkg_semver, &db_semver);
    upgrade_to_2021_1228_1528(&pkg_semver, &db_semver);
}
/// if the data structure changes then it must be updated by a migration
if the data structure changes then it must be updated by a migration
if the data structure changes then it must be updated by a migration
pub fn db_sled_migration_update(cargo_pkg_version: &str) {
    let pkg_semver = unwrap!(semver::Version::parse(&cargo_pkg_version));
    let db_version = unwrap!(db_metadata_mod::get_version());
    let db_semver = unwrap!(semver::Version::parse(&db_version));
    // log::info!("db_sled_migration_update pkg={}, db={}", &pkg_semver, &db_semver);
    upgrade_to_2021_1228_1255(&pkg_semver, &db_semver);
    upgrade_to_2021_1228_1528(&pkg_semver, &db_semver);
}
pub fn db_sled_migration_update ( cargo_pkg_version : & str ) { let pkg_semver = unwrap ! ( semver Version parse ( cargo_pkg_version ) ) ; let db_version = unwrap ! ( db_metadata_mod get_version ( ) ) ; let db_semver = unwrap ! ( semver Version parse ( db_version ) ) ; // log::info!("db_sled_migration_update pkg={}, db={}", &pkg_semver, &db_semver); upgrade_to_2021_1228_1255 ( & pkg_semver , & db_semver ) ; upgrade_to_2021_1228_1528 ( & pkg_semver , & db_semver ) ; }
if the data structure changes then it must be updated by a migration
if the data structure changes then it must be updated by a migration
cargo_pkg_version
&str