Skip to content
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

Conversation

Bernardoow
Copy link
Contributor

@Bernardoow Bernardoow commented Jan 22, 2020

Added little information about optional message and how file will be create with this.

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."
Copy link
Owner

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".

Copy link
Contributor Author

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
Copy link
Owner

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok!

@Bernardoow Bernardoow force-pushed the adding_information_about_message branch from 15a46c5 to e5c287b Compare January 22, 2020 10:06
@Bernardoow Bernardoow force-pushed the adding_information_about_message branch from e5c287b to f9bd807 Compare January 22, 2020 10:12
@Bernardoow
Copy link
Contributor Author

Done!

@miguelgrinberg miguelgrinberg merged commit aa05b83 into miguelgrinberg:master Jan 22, 2020
@miguelgrinberg
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants