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

CreateView migration command #2886

Closed
gingermusketeer opened this issue Sep 18, 2013 · 7 comments
Closed

CreateView migration command #2886

gingermusketeer opened this issue Sep 18, 2013 · 7 comments

Comments

@gingermusketeer
Copy link

It would be great if we could create and drop views in migrations.

@samdark
Copy link
Member

samdark commented Sep 18, 2013

Could you elaborate?

@gingermusketeer
Copy link
Author

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.

@ghost ghost assigned samdark Sep 18, 2013
@samdark
Copy link
Member

samdark commented Sep 18, 2013

Makes sense. I've verified that syntax for basics of view creation is the same for all DBs we currently support.

@romdim
Copy link

romdim commented Feb 8, 2015

Hello! Is there any update on the matter? Thank you very much in advance!

@samdark
Copy link
Member

samdark commented Feb 8, 2015

@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.

@samdark samdark closed this as completed Nov 17, 2015
@yuracher
Copy link

Hi! It is planned to implement in Yii2?

@cebe
Copy link
Member

cebe commented Mar 20, 2016

@yuracher create an issue on https://github.com/yiisoft/yii2/issues

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

No branches or pull requests

5 participants