Fix VersionedSessions migration (#4162)

This commit is contained in:
ruslandoga 2024-06-03 14:47:44 +07:00 committed by GitHub
parent 12ddec6b77
commit cb074d835b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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, _} =