Merge branch 'origin/dev' into Weblate.
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
commit
71ab73fbcf
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user