analytics/priv/repo/migrations/20200204093801_rename_site_id_to_domain.exs
Uku Taht 7dbbc8ba22
Configurable site id (#30)
* Use site id instead of hostname for events

* Use site id in domain status check

* Revert change to tracking module

* Catch more places where link generation needed updating

* Rename site_id to domain

* Drop hostname index from events
2020-02-04 15:44:13 +02:00

9 lines
208 B
Elixir

defmodule Plausible.Repo.Migrations.RenameSiteIdToDomain do
use Ecto.Migration
def change do
rename table(:events), :site_id, to: :domain
rename table(:sessions), :site_id, to: :domain
end
end