Skip to content

Conversation

Huliiiiii
Copy link
Member

@Huliiiiii Huliiiiii commented Apr 23, 2025

PR Info

A better solution of #2566.
Make migration names independent of file name to support different file structures.

I also cleaned up the migration template.

New Features

Bug Fixes

Breaking Changes

Changes

  • Migration names are no longer dependent on file names, and are now generated when generating migrations.

@Huliiiiii Huliiiiii force-pushed the impl-migration-name-in-generation branch from 912fe94 to 8f19128 Compare April 23, 2025 12:14
impl MigrationName for Migration {{
fn name(&self) -> &str {{
"{migration_name}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we check for invalid input?

@Huliiiiii Huliiiiii changed the title cli: Implement MigrationName in migration generation cli: Implement MigrationName for Migration in migration generation Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant