Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/source/pages/developers_guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,18 @@ some examples.

style_guide
apidoc/index

-----------------------------
Updating the database diagram
-----------------------------

Macaron uses a visual representation of its database to better help developers understand the relationships between the tables within it.
This diagram is created using the `eralchemy2 <https://pypi.org/project/eralchemy2/>`_ an entity relation diagrams generator Python library.
When modifications have been made to Macaron's database, the representative diagram needs to be regenerated to match.
This can be done using the following command:

.. code-block:: bash

eralchemy2 -i 'sqlite:///<path_to_output>/macaron.db' -o er-diagram.svg

Where ``<path_to_output>`` is the location of Macaron's output folder. The resulting diagram can then replace the previous version found at ``docs/source/assets/er-diagram.svg``
Loading