mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 00:24:44 +03:00
Fix VersionedSessions migration (#4162)
This commit is contained in:
parent
12ddec6b77
commit
cb074d835b
@ -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, _} =
|
||||
|
Loading…
Reference in New Issue
Block a user