Merge branch 'origin/dev' into Weblate.
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Weblate 2023-02-05 05:53:38 +00:00
commit 71ab73fbcf

View File

@ -15,8 +15,12 @@ defmodule Cannery.Repo.Migrator do
end end
def migrate! do def migrate! do
path = Application.app_dir(:cannery, "priv/repo/migrations") path = Application.app_dir(:lokal, "priv/repo/migrations")
Ecto.Migrator.run(Cannery.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