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.
pull/2782/head
Adam 4 years ago committed by GitHub
parent a154a4214b
commit baa04be191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save