Skip to content

Commit 781de22

Browse files
Rename migration files to be sequential (#674)
Until now they began with the revision_id which made it hard to spot which migrations were sequential
1 parent 54b5201 commit 781de22

6 files changed

+6
-0
lines changed

alembic.ini

+6
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,11 @@ prepend_sys_path = .
1515
# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
1616
version_path_separator = os # Use os.pathsep.
1717

18+
# template used to generate migration file names
19+
file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
20+
# timezone to use when rendering the date within the migration file
21+
# as well as the filename.
22+
timezone = UTC
23+
1824
# DB connection string
1925
sqlalchemy.url = sqlite:///codegate_volume/db/codegate.db

0 commit comments

Comments
 (0)