Skip to content

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

Remove obsolete migration config (#2769)

Adambaa04be19193
diff --git a/priv/repo/migrations/20190618165016_add_public_sites.exs b/priv/repo/migrations/20190618165016_add_public_sites.exs
index ccc6419358..0950b45ffc 100644
--- a/priv/repo/migrations/20190618165016_add_public_sites.exs
+++ b/priv/repo/migrations/20190618165016_add_public_sites.exs
@@ -1,12 +1,9 @@
defmodule Plausible.Repo.Migrations.AddPublicSites do
use Ecto.Migration
- @host Application.get_env(:plausible, :url, :host)
def change do
alter table(:sites) do
add :public, :boolean, null: false, default: false
end
-
- execute "update sites set public=true where domain='#{@host}'"
end
end