mirror of
https://github.com/plausible/analytics.git
synced 2024-11-09 16:46:40 +03:00
skip v1 table drop in self-host (#2945)
This commit is contained in:
parent
447ed12155
commit
f489d96251
@ -2,7 +2,11 @@ defmodule Plausible.IngestRepo.Migrations.CleanUpOldTablesAfterV2Migration do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
drop_if_exists table(:events)
|
||||
drop_if_exists table(:sessions)
|
||||
selfhost? = Application.fetch_env!(:plausible, :is_selfhost)
|
||||
|
||||
unless selfhost? do
|
||||
drop_if_exists table(:events)
|
||||
drop_if_exists table(:sessions)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user