Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
defmodule Plausible.Repo.Migrations.AddCurrencyToSubscription do
use Ecto.Migration
def change do
alter table(:subscriptions) do
add :currency_code, :string
end
execute "UPDATE subscriptions set currency_code='USD'"
alter table(:subscriptions) do
modify :currency_code, :string, null: false
end
end
end