** (Ecto.MigrationError) cannot reverse migration command: execute “ALTER INDEX IF EXISTS "public".oban_jobs_meta_index_old RENAME TO oban_jobs_meta_index\n”. You will need to explicitly define up/0 and down/0 in your migration
only have
defmodule App.Repo.Migrations.AddPartitionedObanJobs do
use Ecto.Migration
defdelegate change, to: Oban.Pro.Migrations.DynamicPartitioner
end
defmodule App.Repo.Migrations.AddObanPro do
use Ecto.Migration
def up, do: Oban.Pro.Migration.up()
def down, do: Oban.Pro.Migration.down()
end
The migration also exposes up/1 and down/1 functions, which are what change/1 calls based on the direction. Part of the Pro CI runs is rolling back all migrations, but we use up and down directly.
We’ll update the docs to point toward up and down instead of change.