analytics/priv/repo/migrations/20190618165016_add_public_sites.exs

12 lines
266 B
Elixir
Raw Normal View History

2019-09-02 14:29:19 +03:00
defmodule Plausible.Repo.Migrations.AddPublicSites do
use Ecto.Migration
def change do
alter table(:sites) do
add :public, :boolean, null: false, default: false
end
execute "update sites set public=true where domain='plausible.io'"
end
end