Skip to content

Unable to migrate to CE v2.1 ((CaseClauseError) no case clause matching) #4161

Discussion options

You must be logged in to vote

So to sum it up in one answer comment:

create file my_versioned_sessions.ex:

defmodule Plausible.IngestRepo.Migrations.SessionsV2VersionedCollapsingMergeTree do
  use Ecto.Migration
  
  defmodule FixedVersionedSessions do
  @moduledoc """
  !!!WARNING!!!: This script is used in migrations. Please take special care
  when altering it.

  Sessions CollapsingMergeTree -> VersionedCollapsingMergeTree migration,
  SQL files available at:

  priv/data_migrations/VersionedSessions/sql
  """
  use Plausible.DataMigration, dir: "VersionedSessions", repo: Plausible.IngestRepo

  @suffix_format "{YYYY}{0M}{0D}{h24}{m}{s}"
  @versioned_table_engines [
    "ReplicatedVersionedCollapsingMergeTree",
    

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@ruslandoga
Comment options

@ruslandoga
Comment options

@DrMaxNix
Comment options

@DrMaxNix
Comment options

Answer selected by DrMaxNix
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants