You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/contribution.rst
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,27 @@ All our tests can be run using the following command:
23
23
$ python -m pytest ether_sql/tests/
24
24
25
25
26
+
Updating the database tables
27
+
----------------------------
28
+
29
+
We use `Alembic <http://alembic.zzzcomputing.com/en/latest/tutorial.html>`_ to
30
+
handle database migrations.
31
+
32
+
You can create new tables by adding a new class in the :code:`ether_sql/models` module. More details on available columns are available at `SQLAlchemy guides <http://docs.sqlalchemy.org/en/latest/orm/tutorial.html>`_
33
+
34
+
To create SQL commands that can reflect the changes in the database, run the following command.
35
+
36
+
37
+
.. code :: shell
38
+
39
+
$ ether_sql sql migrate -m "message for changes"
40
+
41
+
Next upgrade the database using the following command:
0 commit comments