Skip to content

Commit

Permalink
Added a information about files with/without message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardoow committed Jan 22, 2020
1 parent 825f7d6 commit 15a46c5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,14 @@ This will add a `migrations` folder to your application. The contents of this fo

You can then generate an initial migration::

$ flask db migrate
$ flask db migrate #-m "You can leave optional message."

- ``Revision script without message:``
5d3244f628be.py

- ``Revision script with message:``
5d3244f628be_you_can_leave_message_optional.py

The migration script needs to be reviewed and edited, as Alembic currently does not detect every change you make to your models. In particular, Alembic is currently unable to detect table name changes, column name changes, or anonymously named constraints. A detailed summary of limitations can be found in the `Alembic autogenerate documentation <http://alembic.zzzcomputing.com/en/latest/autogenerate.html#what-does-autogenerate-detect-and-what-does-it-not-detect>`_. Once finalized, the migration script also needs to be added to version control.

Then you can apply the migration to the database::
Expand Down

0 comments on commit 15a46c5

Please sign in to comment.