Love Fuel?
Donate
About
Forums
Discussions
Login
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Oil
oil modify_fields
efx
November 2017
Hey, is there a modify_fields migration from oil ?
I see in core code but I have not success, else not I used migration file with \DBUtils class.
WanWizard
November 2017
You mean a commandline option?
Looking in the code I don't think so? It's probably because the command can be extremely complex given what you can modify.
Or do you have a suggestion?
efx
November 2017
Hey,
yeah from command line, I was just thinking to :
php oil generate migration modify_myfield_to_mytable fieldname:enum["toto","coco", "popo"]
I modify
myfield
from
mytable
for add "
popo" in enum.
WanWizard
November 2017
So: fieldname:type[constraint] ?
efx
November 2017
right. Iam not sure its implemented actually ?
WanWizard
November 2017
It isn't. But I can see if it is possible without too much effort,
efx
November 2017
thanks
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,090
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
262
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
efx
November 2017
WanWizard
November 2017
To Top