summaryrefslogtreecommitdiff
path: root/alembic/templates/pylons/alembic.ini.mako
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2017-04-06 13:55:35 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-04-06 14:35:41 -0400
commitfbbb669b8cd8845cd5dbdd827f8beb70fa1476bc (patch)
treedaa73390d2fb0cf3a9c71582378267786753ffbb /alembic/templates/pylons/alembic.ini.mako
parent4cdb25bf5d70e6e8a789c75c59a2a908433674ce (diff)
downloadalembic-fbbb669b8cd8845cd5dbdd827f8beb70fa1476bc.tar.gz
Add timezone option to config
Using dateutil.tz to link string names to tzinfo objects, the create_date can now generate using a named timezone rather than datetime.now(). Change-Id: I9f151cb9e11da3d68be63d7141f60e7eccb9812c Fixes: #425
Diffstat (limited to 'alembic/templates/pylons/alembic.ini.mako')
-rw-r--r--alembic/templates/pylons/alembic.ini.mako6
1 files changed, 6 insertions, 0 deletions
diff --git a/alembic/templates/pylons/alembic.ini.mako b/alembic/templates/pylons/alembic.ini.mako
index 62191e0..c5cc413 100644
--- a/alembic/templates/pylons/alembic.ini.mako
+++ b/alembic/templates/pylons/alembic.ini.mako
@@ -7,6 +7,12 @@ script_location = ${script_location}
# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
+# timezone to use when rendering the date
+# within the migration file as well as the filename.
+# string value is passed to dateutil.tz.gettz()
+# leave blank for localtime
+# timezone =
+
# max length of characters to apply to the
# "slug" field
#truncate_slug_length = 40