Upgrading to v1.4

Skip This Guide

This guide is only necessary if you're stopping on Pro v1.4. The migrations outlined in this guide are handled automatically in Pro v1.5 and you can safely skip these changes and jump straight to Upgrading v1.5.

Workflows

Because workflow staging is now reactive, you must add an optimized partial index to improve the performance of workflow dependency queries:

defmodule MyApp.Repo.Migrations.AddWorkflowIndexes do
  use Ecto.Migration

  defdelegate change, to: Oban.Pro.Migrations.Workflow
end

Upgrading DynamicCron

Changes to DynamicCron require a migration to add the new insertions column. You must re-run the DynamicCron migration when upgrading.

defmodule MyApp.Repo.Migrations.UpdateObanCron do
  use Ecto.Migration

  defdelegate change, to: Oban.Pro.Migrations.DynamicCron
end