Closed IngwiePhoenix closed 9 years ago
Do these tables exist? If not, you should be using the ->create()
method instead of the ->save()
method
When you run the migrate method does everything work as expected?
When I migrate upwards, it works. Migrating downwards fails. I am going to change the methods from save() to create() and see if it does anything.
The change did the trick. I just had to take care to not call change() twice on $convMembers, but that was just a tiny fail on my end.
Thanks for the tipp! I must have overseen change()…
Is there a documentation about the various add*() methods somewhere? Like what extra parameters can I put into the array to an addColumn() method? Stuff like that would be good to know ;)
Kind regards, Ingwie
It's all on the documentation as far as I know (I linked specifically to the writing migrations section). There's a couple of nuances that you'll only pick up by making mistakes in the first place. Don't worry, we've all been there :)
Also there is documentation in the code itself, so you can always go in to the declaration of addColumn() and see what you can pass in from there
Alright. I managed to wrap my head around it. I am just not finding on emethod, but I probably can find it in the code - deleting a table.
Right now I am adjusting on my config, but I will open another issue for that one to not mix up topics. :)
I have made a rather simple migration to initialize my DB. But it seems that Phinx can't handle the automatic rollback...
And now, this is what happens.
... what do I do now? I have to clear the whole DB if I ever have to roll this one back...