Skip to content

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

Drop installation_meta mentions from schema (#5479)

Karl-Aksel Puulmann84d8e60e92d1
diff --git a/lib/plausible/site.ex b/lib/plausible/site.ex
index 598f113b7f..8a235582a8 100644
--- a/lib/plausible/site.ex
+++ b/lib/plausible/site.ex
@@ -37,10 +37,6 @@ defmodule Plausible.Site do
has_many :guest_memberships, Plausible.Teams.GuestMembership
has_many :guest_invitations, Plausible.Teams.GuestInvitation
- embeds_one :installation_meta, Plausible.Site.InstallationMeta,
- on_replace: :update,
- defaults_to_struct: true
-
has_one :tracker_script_configuration, Plausible.Site.TrackerScriptConfiguration
has_many :goals, Plausible.Goal, preload_order: [desc: :id]
diff --git a/lib/plausible/site/installation_meta.ex b/lib/plausible/site/installation_meta.ex
deleted file mode 100644
index 58de0d8df8..0000000000
--- a/lib/plausible/site/installation_meta.ex
+++ /dev/null
@@ -1,13 +0,0 @@
-defmodule Plausible.Site.InstallationMeta do
- @moduledoc """
- Embedded schema for installation meta-data
- """
- use Ecto.Schema
-
- @type t() :: %__MODULE__{}
-
- embedded_schema do
- field :installation_type, :string, default: "manual"
- field :script_config, :map, default: %{}
- end
-end