Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

382 B
Raw Blame
defmodule Plausible.Repo.Migrations.PendingStatsDeletions do
  use Ecto.Migration

  def change do
    create table(:pending_stats_deletions) do
      # site id may not in postgres anymore, so not a reference
      add :site_id, :integer, null: false
      add :reason, :text, null: false

      timestamps()
    end

    create index(:pending_stats_deletions, [:reason])
  end
end