Add Migrations status


I would be very nice if kong added a method to query if there are pending migrations.
something along the line of “kong migrations status”
that would return 0 if there are no migrations and 1 if there are (plus the migrations to be run)

This way someone could run kong migrations status before running a kong migrations up, and at least know what is about to happen before they run the migrations.

This is also very useful for automation tool like puppet to know if migrations need to be run.


Funny that you ask because these days, we are working on improving our migrations workflow, and I was thinking of implementing this precise command this afternoon :slight_smile:

Thanks for the suggestions, or well, the confirmation that such a command is needed.


1 Like