@@ -7,7 +7,7 @@ Understand Diagrams
77.. contents:: On this page
88 :local:
99 :backlinks: none
10- :depth: 2
10+ :depth: 1
1111 :class: singlecol
1212
1313This page explains how to interpret diagrams created in the Relational
@@ -55,7 +55,7 @@ Some fields have icons to indicate their role within the table:
5555Choose View Mode
5656----------------
5757
58- The Relational Migrator provides different view modes for your diagrams :
58+ Relational Migrator provides different diagram view modes:
5959Horizontal Split, Vertical Split, Relational view, and MongoDB view.
6060
6161.. list-table::
@@ -109,6 +109,43 @@ features of relationships:
109109
110110- A prong (or "crow's feet") indicates "many" in the relationship.
111111
112+ Undo or Redo Diagram Actions
113+ ----------------------------
114+
115+ Relational Migrator diagrams support undo and redo functions. To reverse
116+ or reapply the previous diagram action, use the undo or redo capability.
117+ You can use either the diagram toolbar or keyboard shortcuts to perform
118+ these actions.
119+
120+ Toolbar
121+ ~~~~~~~
122+
123+ You can use the :icon-lg:`Undo` and :icon-lg:`Redo` buttons on the
124+ diagram toolbar:
125+
126+ .. image:: /img/diagrams/undo-redo.png
127+ :alt: Toolbar undo and redo buttons
128+
129+ Keyboard Shortcut
130+ ~~~~~~~~~~~~~~~~~
131+
132+ Alternatively, you can use keyboard shortcuts:
133+
134+ .. list-table::
135+ :header-rows: 1
136+
137+ * - Function
138+ - Windows Shortcut
139+ - Mac Shortcut
140+
141+ * - Undo
142+ - :kbd:`Control` + :kbd:`Z`
143+ - :kbd:`Command` + :kbd:`Z`
144+
145+ * - Redo
146+ - :kbd:`Control` + :kbd:`Y`
147+ - :kbd:`Command` + :kbd:`Y`
148+
112149Relational and MongoDB View Links
113150---------------------------------
114151
@@ -117,8 +154,8 @@ Relational Migrator highlights the corresponding entity in the opposite
117154view. This allows you to see how your relational tables and MongoDB
118155collections are mapped to one another.
119156
120- Example
121- -------
157+ Examples
158+ --------
122159
123160The following example shows a sample diagram for a database that
124161tracks orders at a store.
@@ -202,18 +239,15 @@ MongoDB's embedded data model:
202239 of objects inside the ``Order`` documents, using the foreign key
203240 relationship from the relational schema.
204241
205-
206242 .. image:: /img/diagrams/order-mapping-example.png
207243 :alt: Order Mapping Rule Example
208244
209-
210245- The ``Customer`` collection contains a rule which maps ``Orders`` as
211246 an :ref:`Embedded array <rm-embedded-array>`. The ``Order``
212247 table from the relational schema is mapped as an array of objects
213248 inside the ``Customer`` documents, using the foreign key relationship
214249 from the relational schema.
215250
216-
217251 .. image:: /img/diagrams/customer-mapping-example.png
218252 :alt: Customer Mapping Rule Example
219253
0 commit comments