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

Migration templates do not work with namespace naming convention #17437

Closed
Isitar opened this issue Jul 16, 2019 · 2 comments
Closed

Migration templates do not work with namespace naming convention #17437

Isitar opened this issue Jul 16, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@Isitar
Copy link
Contributor

Isitar commented Jul 16, 2019

What steps will reproduce the problem?

php yii migrate/create 'common\migrations\CreateNewsTable' --fields="hello:int"

What is the expected result?

a migration with the create_table template

What do you get instead?

an empty migration

Additional info

it doesnt work because the preg_match does not work for this naming convention (line 392 onwards in MigrateController)

Q A
Yii version 2.0.22
PHP version 7.3
Operating system Windows
@samdark samdark added help wanted status:ready for adoption Feel free to implement this issue. type:bug Bug labels Jul 16, 2019
@bizley
Copy link
Member

bizley commented Jul 16, 2019

I'm on it.

@Isitar
Copy link
Contributor Author

Isitar commented Jul 16, 2019

@bizley do not forget the template files itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants