From 15a46c545fb85b5d5dfa3aefef6dae3c271b3e34 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Date: Tue, 21 Jan 2020 22:07:26 -0300 Subject: [PATCH] Added a information about files with/without message. --- docs/index.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 710558e..38b4c7b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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 `_. Once finalized, the migration script also needs to be added to version control. Then you can apply the migration to the database::