Skip to content

Upgrading to a new version of Torus

Eli Knebel edited this page Mar 29, 2021 · 1 revision

Database Migration

When upgrading to a newer version of Torus, there may be database migrations that need to be executed for a release. Depending on if you are running your instance using mix, docker-compose, or a prebuilt release, you will want to run one of the following:

Mix: mix ecto.migrate

Docker-compose: docker-compose run app mix ecto.migrate

Prebuilt Release: ./oli/bin/oli eval "Oli.ReleaseTasks.migrate"

The migration task will automatically detect which migrations need to be applied and only apply those so it is safe to run this command on every release. (For example, as part of an automated deployment job)