H
H
hostadmin2019-12-22 16:41:09
Yii
hostadmin, 2019-12-22 16:41:09

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

1 answer(s)
A
Alex Wells, 2019-12-22
@Alex_Wells

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 question

Ask a Question

731 491 924 answers to any question