more extensive upsert tests

This commit is contained in:
Ari Lazier 2015-09-04 12:41:17 -07:00
parent beb7c19931
commit a099682f0e
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ bool ObjectStore::create_tables(Group *group, Schema &target_schema, bool update
case PropertyTypeObject:
case PropertyTypeArray: {
TableRef link_table = ObjectStore::table_for_object_type(group, target_prop.object_type);
REALM_ASSERT(link_table);
target_prop.table_column = table->add_column_link(DataType(target_prop.type), target_prop.name, *link_table);
break;
}