Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

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

Lines changed: 6 additions & 0 deletions
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
File renamed without changes.

migrations/versions/5c2f3eee5f90_introduce_workspaces.py renamed to migrations/versions/2025_01_16_1849-5c2f3eee5f90_introduce_workspaces.py

File renamed without changes.

migrations/versions/a692c8b52308_add_workspace_system_prompt.py renamed to migrations/versions/2025_01_20_1546-a692c8b52308_add_workspace_system_prompt.py

File renamed without changes.

migrations/versions/8e4b4b8d1a88_add_soft_delete.py renamed to migrations/versions/2025_01_20_1727-8e4b4b8d1a88_add_soft_delete.py

File renamed without changes.

migrations/versions/e6227073183d_merging_system_prompt_and_soft_deletes.py renamed to migrations/versions/2025_01_20_1728-e6227073183d_merging_system_prompt_and_soft_deletes.py

File renamed without changes.

0 commit comments

Comments
 (0)