Ecto migration to move sessions_v2 to VersionedCollapsingMergeTree (#3809)
This migration will noop in staging/production as it already has been run. It also leaves behind a backup table that initially takes no extra space but will need to be cleaned up manuallypull/3846/head
parent
39aa81a16f
commit
ea38b45685
@ -0,0 +1,13 @@
|
||||
defmodule Plausible.IngestRepo.Migrations.SessionsV2VersionedCollapsingMergeTree do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
Plausible.DataMigration.VersionedSessions.run(run_exchange?: true)
|
||||
|
||||
# After this migration a `sessions_v2_tmp_versioned` backup table is left behind, to be cleaned up manually
|
||||
end
|
||||
|
||||
def down do
|
||||
raise "Irreversible"
|
||||
end
|
||||
end
|
||||
Loading…
Reference in New Issue