Remove obsolete migration config (#2769)

The compilation warning advises to use `Application.compile_env/3`
however there is no `:url` environment setting under `:plausible` key
anyway, so we might as well get rid of it completely.
This commit is contained in:
Adam 2023-03-22 10:32:24 +01:00 committed by GitHub
parent a154a4214b
commit baa04be191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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