Answer the question
In order to leave comments, you need to log in
Which simple tool to create SQL migrations in PHP should you choose?
I'm looking for a simple tool for writing migrations (you need up/down methods in the generated templates and the ability to run them from the cli command)
From the requirements: the
minimum number of dependencies (most packages on packagist pull an infernal amount of dependencies)
Customizability (Almost everything that I saw it, it's impossible to customize, because the logic is in one god-method)
Things like Doctrine and Phinx, please, are not offered.
Thanks in advance! :)
Answer the question
In order to leave comments, you need to log in
minimum number of dependencies (most packages on packagist carry an insane amount of dependencies)
this is what composer is for, so as not to cycle.
for this, there are a lot of dependencies and the complexity of the library architecture, but you can expand it as you like.
What do you want to customize in such a simple and small task?
Most Popular. What did you not like?
In this case, write your bike if you don’t want dependencies or it’s too difficult to master something ready-made.
Here is a friend who just makes a simple migrator https://github.com/lazypdo/migrator
It works from the console, there are practically no dependencies.
Quite simple and unpretentious.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question