]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Add epoch as an option for file_template
authorCaio Carvalho <21188280+lowercase00@users.noreply.github.com>
Tue, 3 May 2022 17:20:18 +0000 (13:20 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 6 May 2022 20:30:39 +0000 (20:30 +0000)
commit0adcc749183abe17beab0baa07d8b1b1ac6a55d2
treeea0bf6b93cf6021db77a5f6ccf5fce43dc5b389a
parent1684d0ee89c0fc6b0b90bc5db614468b31119e9d
Add epoch as an option for file_template

Added new token ``epoch`` to the ``file_template`` option, which will
populate the integer epoch as determined by ``int(create_date.timestamp())``.
Pull request courtesy Caio Carvalho.

Fixes: #1027
Closes: #1028
Pull-request: https://github.com/sqlalchemy/alembic/pull/1028
Pull-request-sha: 27970cd5d4e047cb7aabd161c68b757b2ee3e4c4

Change-Id: I73e13009bae91e64681a605b3f0b62ea1e5fc464
alembic/script/base.py
alembic/templates/generic/alembic.ini.mako
alembic/templates/multidb/alembic.ini.mako
alembic/templates/pylons/alembic.ini.mako
docs/build/tutorial.rst
docs/build/unreleased/1027.rst [new file with mode: 0644]
tests/test_mssql.py
tests/test_script_production.py