We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

exporting data from database tables when running "phalcon migration" command

Hi everyone! =)

How can we generate a migration and export the data from the tables at the same time when running "phalcon migration generate" command?

Based on the docs, I think there is that possibility, but I can't run it successfully...

phalcon migration generate options

https://docs.phalcon.io/en/latest/reference/migrations.html

Thank you in advance =)



1.7k
edited Apr '15

BTW, just checked now that, someone pointed this issue and asked exactly the same question on phalcon-devtools repo on github:

https://github.com/phalcon/phalcon-devtools/issues/204

It remains a mystery... hope someone can solve this one..

cheers

As I know migration is not responsible for backup jobs and you should do it in a seperate process.

As I know migration is not responsible for backup jobs and you should do it in a seperate process.

Well, I was about to ask about "data migrations". That's not the same as backups.

Here's my question as reference: https://forum.phalcon.io/discussion/6658/data-migrations