What is the right way to migrate Agola's DB during upgrade?

We are using Agola with Posgtres. Just upgrading the version doesn’t automatically upgrade Agola’s DB. Looking through the Agola’s code, the closest I’ve seen is migrate command, but I haven’t found any documentation on how an admin is supposed to keep up the DB during upgrades. I guess I must somehow manually point to Agola’s postgres instance and to local path for temporary SQLite instance. Can someone confirm and provide an example?

Thanks