diff options
author | Elias Dorneles <elias.dorneles@hey.com> | 2022-04-06 10:42:36 -0400 |
---|---|---|
committer | sqla-tester <sqla-tester@sqlalchemy.org> | 2022-04-06 10:42:36 -0400 |
commit | 537448c34af065476b6679fed3aa7b36cda14c3f (patch) | |
tree | b0805db7e2cfe1157a3a4bf0bfed08c5d72e93b2 /alembic/templates/pylons/alembic.ini.mako | |
parent | d741367c388ec1b7083a2c242911745647ec9a28 (diff) | |
download | alembic-537448c34af065476b6679fed3aa7b36cda14c3f.tar.gz |
Document config for migration files timestamp prefixed
See discussion in issue: https://github.com/sqlalchemy/alembic/issues/1011
### Description
Summary of changes:
* updated `alembic.ini` templates
* updated tutorial accordingly
### Checklist
This pull request is:
- [x] A documentation / typographical error fix
- [ ] A short code fix
- [ ] A new feature implementation
Closes: #1013
Pull-request: https://github.com/sqlalchemy/alembic/pull/1013
Pull-request-sha: 34f06ac0a59a6207cf132f9ae5fdc9bc4780f404
Change-Id: Ia51441c9ec39a43a0ecc1270a40859af014b326c
Diffstat (limited to 'alembic/templates/pylons/alembic.ini.mako')
-rw-r--r-- | alembic/templates/pylons/alembic.ini.mako | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/alembic/templates/pylons/alembic.ini.mako b/alembic/templates/pylons/alembic.ini.mako index bb425a6..ed930da 100644 --- a/alembic/templates/pylons/alembic.ini.mako +++ b/alembic/templates/pylons/alembic.ini.mako @@ -4,8 +4,9 @@ # path to migration scripts script_location = ${script_location} -# template used to generate migration files -# file_template = %%(rev)s_%%(slug)s +# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s +# Uncomment the line below if you want the files to be prepended with date and time +# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s # sys.path path, will be prepended to sys.path if present. # defaults to the current working directory. |