Answer the question
In order to leave comments, you need to log in
Is there an analogue of migrations for console commands?
For example, migrations are a convenient way to "move" some SQL commands between environments. Are there any similar tools but for regular artisan (or yii) console commands?
That is, for example, I installed a package in Laravel, after installation it is necessary to execute an artisan command that will add some data (most likely to the database). Now it turns out that I need to go to the database and see what exactly this team added and write a migration that will do the same.
And it would be desirable that in addition to migrations to the database, there were also "migrations of teams".
Answer the question
In order to leave comments, you need to log in
No, no. On a working project, they wrote such a thing, once run commands, but there is no ready-made solution in the open source.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question