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

Migrations fail with message class not found #54

Closed
philippfrenzel opened this issue Jan 9, 2017 · 5 comments
Closed

Migrations fail with message class not found #54

philippfrenzel opened this issue Jan 9, 2017 · 5 comments

Comments

@philippfrenzel
Copy link

Hi, since your namespace cleanup, the migrations aren't working anymore. I'm not able to solve it, as you are using the getModule function within the migrate to retrieve the table name from the config - do you have an idea how to fix this?

Thanks Philipp

@philippfrenzel
Copy link
Author

Hi, pls. see:

dmstr/yii2-migrate-command#19

It looks like the class is not registered in the global namespace

@schmunk42
Copy link

It's more a Yii2 issue I think, see yiisoft/yii2#384
There was a discussion about implementing this via Yii app params, but now it's done via namespaces.

@schmunk42
Copy link

You need to require Yii >= 2.0.10, when using namespaced migrations. See also yiisoft/yii2#13356

@CTOlet
Copy link
Owner

CTOlet commented Jan 10, 2017

Install 1.0.0-beta.2 of that ext if you have not to upgrade yii -> 2.0.10

@schmunk42
Copy link

@philippfrenzel That's the way to go then, since this extension is in beta, these updates are fine.

I think this can be closed.

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

3 participants