Skip to content

Commit 019253c

Browse files
author
Mohammad Hunan Chughtai
committed
2nd person imperative
1 parent d6ee8ab commit 019253c

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

source/sdk/react-native/realm-database/change-an-object-model.txt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ set a ``schemaVersion`` of the ``Configuration`` object.
102102
``firstName`` and ``lastName`` property. You decide to add an
103103
``age`` property to the ``Person`` class.
104104

105-
To migrate the realm to conform to the updated ``Person`` schema, the
106-
developer sets the realm's schema version in the ``Configuration`` to ``2``.
107-
Finally, you pass the configuration object to the
108-
``createRealmContext()`` method.
105+
To migrate the realm to conform to the updated ``Person`` schema, you set the
106+
realm's schema version in the ``Configuration`` to ``2``. Finally, pass
107+
the configuration object to the ``createRealmContext()`` method.
109108

110109
.. tabs-realm-languages::
111110

@@ -139,10 +138,9 @@ existing objects.
139138
``Person`` object type with a ``lastName`` property. You decide to
140139
remove the property from the schema.
141140

142-
To migrate the realm to conform to the updated ``Person`` schema, the
143-
developer sets the realm's schema version to 2 in the ``Configuration``
144-
object. Finally, you pass the configuration object to the
145-
``createRealmContext()`` method.
141+
To migrate the realm to conform to the updated ``Person`` schema, set the
142+
realm's schema version to 2 in the ``Configuration`` object. Finally, pass
143+
the configuration object to the ``createRealmContext()`` method.
146144

147145

148146
.. tabs-realm-languages::
@@ -187,10 +185,10 @@ property, and then delete the old property.
187185
field. You later decide that the ``Person`` class should use a combined
188186
``fullName`` field and removes the separate ``firstName`` and ``lastName`` fields.
189187

190-
To migrate the realm to conform to the updated ``Person`` schema, you create a :js-sdk:`Configuration <Realm.html#~Configuration>` object
188+
To migrate the realm to conform to the updated ``Person`` schema, create a :js-sdk:`Configuration <Realm.html#~Configuration>` object
191189
and set the realm's schema version to ``2``, and define a migration function that
192190
sets the value of ``fullName`` based on the existing ``firstName`` and ``lastName``
193-
properties. Finally, you pass the configuration object to the
191+
properties. Finally, pass the configuration object to the
194192
``createRealmContext()`` method.
195193

196194
.. tabs-realm-languages::
@@ -242,10 +240,10 @@ callback function of the :js-sdk:`Configuration
242240
``int``. You later decide that the ``Task`` class's ``_id`` field should
243241
be of type ``ObjectId``, and updates the schema.
244242

245-
To migrate the realm to conform to the updated ``Task`` schema, you create a
243+
To migrate the realm to conform to the updated ``Task`` schema, create a
246244
``Configuration`` object and set the realm's schema version to ``2``, and
247245
define a migration function to convert the integer type to an ``Object ID``
248-
type. Finally, you pass the configuration object to the
246+
type. Finally, pass the configuration object to the
249247
``createRealmContext()`` method.
250248

251249
.. tabs-realm-languages::

0 commit comments

Comments
 (0)