Skip to content

Commit

Permalink
fix: Log out the host before migration starts (#675)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipecabaco authored Sep 14, 2023
1 parent 2223ea7 commit 5ac1948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/extensions/postgres_cdc_rls/migrations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ defmodule Extensions.PostgresCdcRls.Migrations do

use GenServer

require Logger
alias Realtime.Repo

alias Realtime.Extensions.Rls.Repo.Migrations.{
Expand Down Expand Up @@ -131,6 +132,8 @@ defmodule Extensions.PostgresCdcRls.Migrations do
]
|> H.maybe_enforce_ssl_config(ssl_enforced)
|> Repo.with_dynamic_repo(fn repo ->
Logger.info("Applying migrations to #{host}")

Ecto.Migrator.run(
Repo,
@migrations,
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Realtime.MixProject do
def project do
[
app: :realtime,
version: "2.22.17",
version: "2.22.18",
elixir: "~> 1.14.0",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 5ac1948

Please sign in to comment.