Skip to content

Alembic file_template uncomment doesn't change migration template naming. #4987

@FoketzoRAI

Description

@FoketzoRAI

Describe the bug
file_template from alembic.ini doesn't apply for migrations naming.

Instead of using:

file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s

it uses %%(rev)s_%%(slug)s default template.

To Reproduce
Steps to reproduce the behavior:

  1. Create any model to create a migration.
  2. Uncomment file_template line in alembic.ini
  3. Run reflex db makemigrations
  4. It creates migration with default template file naming, without dates.

Expected behavior
After uncommenting the file_template field in alembic.ini migration created with custom template.

Screenshots

Image

Specifics (please complete the following information):

  • Python Version: 3.13.2
  • Reflex Version: 0.7.2
  • OS: Ubuntu 24.04

PS. I've tried to understand what's wrong but looks like I'm stuck with this issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions