mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 14:25:58 +00:00
Fix error in cleanup after an error during a migration
This commit is contained in:
parent
1fcc5a1be8
commit
981e7007f7
@ -215,7 +215,7 @@ bool Realm::update_schema(std::unique_ptr<Schema> schema, uint64_t version)
|
||||
cancel_transaction();
|
||||
}
|
||||
m_config.schema_version = old_config.schema_version;
|
||||
m_config.schema = std::move(m_config.schema);
|
||||
m_config.schema = std::move(old_config.schema);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user