phpmig icon indicating copy to clipboard operation
phpmig copied to clipboard

What makes this better than dbdeploy and phing?

Open markushausammann opened this issue 13 years ago • 3 comments

It seems to me that writing migrations with dbdeploy and phing is much less work, what are the advantages of using phpmig?

markushausammann avatar Nov 11 '12 16:11 markushausammann

Well, both have their benefits, here are some of them:

DBDeploy

  • You only need to write SQL, DBA's who don't necessarily program can do this
  • Easy to run, they're just SQL scripts

phpmig (code based)

  • You can make complicated decisions based on state
  • You can run complicated data transformations (sometimes leveraging existing code)
  • You can prompt for user input/confirmation
  • It's easier (than sticking to ANSI SQL) to write database vendor agnositic migrations using a schema tool
  • You can migrate anything, xml files, document databases, binary data

davedevelopment avatar Nov 12 '12 10:11 davedevelopment

Thanks, that's a very helpful comparison. Maybe nice to add it to the readme.

markushausammann avatar Nov 12 '12 12:11 markushausammann

No problem, hope it helps. I've tagged this issue with 'FAQ', I'll re-open it for others to see until I can get some better documentation put together.

davedevelopment avatar Nov 12 '12 12:11 davedevelopment