swap StorageSchemaVersionDowngrade versions to be like from to
@@ -22,7 +22,7 @@ pub fn migrate_storage_schema<Env: Environment + 'static>(
Env::get_storage::<usize>(SCHEMA_VERSION_STORAGE_KEY).and_then(|schema_version| {
match schema_version {
Some(schema_version) if schema_version > SCHEMA_VERSION => Either::Left(future::err(
- EnvError::StorageSchemaVersionDowngrade(SCHEMA_VERSION, schema_version),
+ EnvError::StorageSchemaVersionDowngrade(schema_version, SCHEMA_VERSION),
)),
None => Either::Right(migrate_storage_schema_v1::<Env>()),
// TODO Some(1) => Either::Right(migrate_storage_schema_v2::<Env>()),
