summaryrefslogtreecommitdiff
path: root/alembic/templates/generic/alembic.ini.mako
diff options
context:
space:
mode:
authorElias Dorneles <elias.dorneles@hey.com>2022-04-06 10:42:36 -0400
committersqla-tester <sqla-tester@sqlalchemy.org>2022-04-06 10:42:36 -0400
commit537448c34af065476b6679fed3aa7b36cda14c3f (patch)
treeb0805db7e2cfe1157a3a4bf0bfed08c5d72e93b2 /alembic/templates/generic/alembic.ini.mako
parentd741367c388ec1b7083a2c242911745647ec9a28 (diff)
downloadalembic-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/generic/alembic.ini.mako')
-rw-r--r--alembic/templates/generic/alembic.ini.mako5
1 files changed, 3 insertions, 2 deletions
diff --git a/alembic/templates/generic/alembic.ini.mako b/alembic/templates/generic/alembic.ini.mako
index 9afeb2d..5268e7c 100644
--- a/alembic/templates/generic/alembic.ini.mako
+++ b/alembic/templates/generic/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.