]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
support paths in file_template
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Dec 2025 17:14:49 +0000 (12:14 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 26 Dec 2025 17:17:14 +0000 (12:17 -0500)
commitfd42cddc3eeb7f2594f50863a7e6b024f07d0b2c
treebe03dc0f3e88c9f44cb301fd339a66770ee7e106
parentb76d33ac840d44ffe5235728e87da94c9ee4b8b5
support paths in file_template

The ``file_template`` configuration option now supports directory paths,
allowing migration files to be organized into subdirectories. When using
directory separators in ``file_template`` (e.g.,
``%(year)d/%(month).2d/%(day).2d_%(rev)s_%(slug)s``), Alembic will
automatically create the necessary directory structure. The
``recursive_version_locations`` setting must be set to ``true`` when using
this feature in order for the revision files to be located for subsequent
commands.

Fixes: #1774
Change-Id: Id68a3b0483c6519d724bbb79bbf8b471ea697c36
alembic/script/base.py
alembic/templates/async/alembic.ini.mako
alembic/templates/generic/alembic.ini.mako
alembic/templates/multidb/alembic.ini.mako
alembic/templates/pyproject/pyproject.toml.mako
alembic/templates/pyproject_async/pyproject.toml.mako
docs/build/tutorial.rst
docs/build/unreleased/1774.rst [new file with mode: 0644]
tests/test_script_production.py