Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Naming Convention For Migration Files #484

Merged

Conversation

sgarbesi
Copy link
Contributor

Purpose: Provide the ability to have a custom naming convention for migration files.

Reasoning: Some projects may want to use a different naming convention other than the default for what this library provides.

Examples:

  • UTC timestamp in the filename instead of pre-configured date format from Knex library.
  • Dashes instead of underscores for the name delimiter.
  • CamelCase/Dash formatting instead of snake case formatting.
  • ...use your imagination.

@sgarbesi sgarbesi changed the title Adding ability to have a custom getNewMigrationName Function. Custom Naming Convention For Migration Files Dec 29, 2022
@OlivierCavadenti OlivierCavadenti merged commit 39cad61 into knex:main Jul 18, 2023
@psrpinto
Copy link

The PR that implements this feature has not been merged so I guess this shouldn't have been merged?

@klondikemarlen
Copy link

Ah! That's why the feature doesn't work yet then. I really wanted that option.

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.

None yet

4 participants