-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a information about files with/without message. #313
Added a information about files with/without message. #313
Conversation
docs/index.rst
Outdated
@@ -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." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer that you only show the version of this command with a message. Adding the message but commented out is confusing, since it has no effect. So please remove the #
and change the message to something that is appropriate for this example, such as "Initial migration".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok!
docs/index.rst
Outdated
5d3244f628be.py | ||
|
||
- ``Revision script with message:`` | ||
5d3244f628be_you_can_leave_message_optional.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a high-level example, showing naming examples for migration scripts does not belong, and does not really add any valuable information. Better to encourage people to always use comments by only showing that in the example above, as I suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok!
15a46c5
to
e5c287b
Compare
e5c287b
to
f9bd807
Compare
Done! |
Thanks! |
Added little information about optional message and how file will be create with this.