Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Magic migrations affecting model
  • Hi there,

    I'm a beginner at PHP and MVC frameworks. I had a model called 'books' with a few attributes(fields/columns).

    Recently I wanted to add another field to the table connected via the model and figured that 'magic migrations' is the way to go.

    The command I used was:
    php oil generate migration add_cover_image_to_books cover_image:string


    followed by:
    php oil r migrate --all


    I assumed it would add the column for me in the model file as well, but it didn't. Is there something wrong or does this have to be done manually?
  • Harro VertonHarro Verton
    Accepted Answer
    You have to do that manually.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion