Skip to content

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

239 B
Raw Blame
defmodule Plausible.Repo.Migrations.ProperTimestampForPageviews do
  use Ecto.Migration

  def change do
    alter table(:pageviews) do
      remove :updated_at
    end

    rename table(:pageviews), :inserted_at, to: :timestamp
  end
end