~ihabunek/triglav

1c7461f07a0ceea83e7bf60e10c9de3e3de344ba — Ivan Habunek 3 months ago 050099a
Make rollback in releases work on all repos

well there is only one
1 files changed, 5 insertions(+), 2 deletions(-)

M lib/triglav/release.ex
M lib/triglav/release.ex => lib/triglav/release.ex +5 -2
@@ 9,9 9,12 @@ defmodule Triglav.Release do
    end
  end

  def rollback(repo, version) do
  def rollback(version) do
    load_app()
    {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to: version))

    for repo <- repos() do
      {:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :down, to: version))
    end
  end

  def import_zet(opts \\ []) do