mirror of
https://github.com/plausible/analytics.git
synced 2024-12-26 02:55:02 +03:00
12 lines
266 B
Elixir
12 lines
266 B
Elixir
|
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
|