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
CreateView migration command #2886
Comments
Could you elaborate? |
Something along the lines of $this->createView('viewName', ' SELECT * FROM sometable WHERE something=1'); and $this->dropView('someView'); Not sure if we can avoid the select statement but it is probably a good idea to have it anyways. Hope that helps. |
Makes sense. I've verified that syntax for basics of view creation is the same for all DBs we currently support. |
Hello! Is there any update on the matter? Thank you very much in advance! |
@romdim no. We aren't allocating resources on 1.1 new features and enhancements focusing mainly on 2.0 and 1.1 bugs. If you want you can help us implementing it and sending a pull request. |
Hi! It is planned to implement in Yii2? |
@yuracher create an issue on https://github.com/yiisoft/yii2/issues |
It would be great if we could create and drop views in migrations.
The text was updated successfully, but these errors were encountered: