N
N
Nikita Kolosov2016-10-11 12:20:44
PHP
Nikita Kolosov, 2016-10-11 12:20:44

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

3 answer(s)
A
Alexander Aksentiev, 2016-10-11
@Sanasol

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.

D
D', 2016-10-11
@Denormalization

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.

D
dmitriy, 2016-10-11
@dmitriylanets

phing migrations

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question