When there are updates to Craft, I perform them locally against a local database. The files are then committed to a repository.
I then use Capistrano to deploy the updated installation to various test environments (and eventually production), each of which have their own database.
My dilemma is that for the DB updates to run for Craft, I have to hit visit the control panel and initiate them. I need a programmatic solution so that I can ping a URL after the deployment is finished, and initiate the DB updates.
Is there already a way to do this or do I need to write a plugin that is a wrapper for
craft()->updates->updateDatabase() that is triggered via a custom site route?