From 57af1f19ec09e7e1aa8bb1b0efd6d4b721e4253c Mon Sep 17 00:00:00 2001 From: hq1 Date: Wed, 10 May 2023 09:19:50 +0200 Subject: [PATCH] Drop events/sessions tables after V2 migration (#2908) --- ...30509124919_clean_up_old_tables_after_v2_migration.exs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 priv/ingest_repo/migrations/20230509124919_clean_up_old_tables_after_v2_migration.exs diff --git a/priv/ingest_repo/migrations/20230509124919_clean_up_old_tables_after_v2_migration.exs b/priv/ingest_repo/migrations/20230509124919_clean_up_old_tables_after_v2_migration.exs new file mode 100644 index 0000000000..b68b8977a1 --- /dev/null +++ b/priv/ingest_repo/migrations/20230509124919_clean_up_old_tables_after_v2_migration.exs @@ -0,0 +1,8 @@ +defmodule Plausible.IngestRepo.Migrations.CleanUpOldTablesAfterV2Migration do + use Ecto.Migration + + def change do + drop_if_exists table(:events) + drop_if_exists table(:sessions) + end +end