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

Allow to change migration basename format #151

Open
Arcesilas opened this issue Nov 5, 2020 · 0 comments
Open

Allow to change migration basename format #151

Arcesilas opened this issue Nov 5, 2020 · 0 comments

Comments

@Arcesilas
Copy link

By default, the migration file basename is:

$basename = date('YmdHis') . '_' . $migrationName . '.php';

Could it be possible to allow to change this by providing a callback?
For example, something like:

$callback = $this->container['phpmig.basename_callback'] ?? null;
$basename = $callback ? $callback($migrationName) : date('YmdHis') . '_' . $migrationName . '.php'

This sould not introduce BC break.

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

No branches or pull requests

1 participant