diff --git a/lib/plausible/data_migration/versioned_sessions.ex b/lib/plausible/data_migration/versioned_sessions.ex index 1116efdbb9..f265e47556 100644 --- a/lib/plausible/data_migration/versioned_sessions.ex +++ b/lib/plausible/data_migration/versioned_sessions.ex @@ -59,7 +59,7 @@ defmodule Plausible.DataMigration.VersionedSessions do nil # Docker containers don't seem to support EXCHANGE TABLE, hack around this with a non-atomic swap - {:error, %Ch.Error{code: 1}} -> + {:error, %Ch.Error{code: code}} when code in [1, 48] -> IO.puts("Exchanging sessions_v2 and sessions_v2_tmp_versioned non-atomically") {:ok, _} =