Dandelion.Migration (dandelion v0.2.0)

Copy Markdown View Source

The database changes dandelion needs, called from your own migration — the way Oban.Migration is:

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

  def up, do: Dandelion.Migration.up()
  def down, do: Dandelion.Migration.down()
end

Run it after the Oban migration: it adds an index to oban_jobs for Dandelion.Queue.Ordered.

Summary

Functions

Removes what up/0 added.

Adds the index Dandelion.Queue.Ordered asks through on every job run.

Functions

down()

Removes what up/0 added.

up()

Adds the index Dandelion.Queue.Ordered asks through on every job run.