convert old date columns

This commit is contained in:
Ari Lazier 2016-05-09 13:12:48 -07:00
parent 477f7b1f33
commit e71fb3766b
2 changed files with 3 additions and 5 deletions

View File

@ -43,15 +43,13 @@ Realm::Config::Config(const Config& c)
, cache(c.cache) , cache(c.cache)
, disable_format_upgrade(c.disable_format_upgrade) , disable_format_upgrade(c.disable_format_upgrade)
, automatic_change_notifications(c.automatic_change_notifications) , automatic_change_notifications(c.automatic_change_notifications)
, upgrade_final_version(0)
, upgrade_initial_version(0)
{ {
if (c.schema) { if (c.schema) {
schema = std::make_unique<Schema>(*c.schema); schema = std::make_unique<Schema>(*c.schema);
} }
} }
Realm::Config::Config() : schema_version(ObjectStore::NotVersioned), upgrade_initial_version(0), upgrade_final_version(0) { } Realm::Config::Config() : schema_version(ObjectStore::NotVersioned) { }
Realm::Config::Config(Config&&) = default; Realm::Config::Config(Config&&) = default;
Realm::Config::~Config() = default; Realm::Config::~Config() = default;

View File

@ -82,9 +82,9 @@ namespace realm {
// everything can be done deterministically on one thread, and // everything can be done deterministically on one thread, and
// speeds up tests that don't need notifications. // speeds up tests that don't need notifications.
bool automatic_change_notifications = true; bool automatic_change_notifications = true;
// File format versions populated when a file format updrade takes place // File format versions populated when a file format upgrade takes place
// during realm opening // during realm opening
int upgrade_initial_version, upgrade_final_version; int upgrade_initial_version = 0, upgrade_final_version = 0;
Config(); Config();
Config(Config&&); Config(Config&&);