improve oban logging
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
shibao 2023-02-04 20:48:17 -05:00 committed by Weblate
parent 0ea953a34c
commit fa44a094c7

View File

@ -15,8 +15,12 @@ defmodule Memex.Repo.Migrator do
end end
def migrate! do def migrate! do
path = Application.app_dir(:memex, "priv/repo/migrations") path = Application.app_dir(:lokal, "priv/repo/migrations")
Ecto.Migrator.run(Memex.Repo, path, :up, all: true) Ecto.Migrator.run(Lokal.Repo, path, :up, all: true)
end
defp automigrate_enabled? do
Application.get_env(:lokal, Lokal.Application, automigrate: false)[:automigrate]
end end
defp automigrate_enabled? do defp automigrate_enabled? do