Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove events and sessions table from postgres

Uku Taht6eeeb52f03c6
diff --git a/priv/repo/migrations/20200605134616_remove_events_and_sessions.exs b/priv/repo/migrations/20200605134616_remove_events_and_sessions.exs
new file mode 100644
index 0000000000..ee17a67f14
--- /dev/null
+++ b/priv/repo/migrations/20200605134616_remove_events_and_sessions.exs
@@ -0,0 +1,8 @@
+defmodule Plausible.Repo.Migrations.RemoveEventsAndSessions do
+ use Ecto.Migration
+
+ def change do
+ drop table(:events)
+ drop table(:sessions)
+ end
+end