Skip to content

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

Add currency field to goals table (#2955)

Vini Brasil3a07487c0500
diff --git a/priv/repo/migrations/20230417092745_add_monetary_value_to_goals.exs b/priv/repo/migrations/20230417092745_add_monetary_value_to_goals.exs
new file mode 100644
index 0000000000..2776d3a804
--- /dev/null
+++ b/priv/repo/migrations/20230417092745_add_monetary_value_to_goals.exs
@@ -0,0 +1,9 @@
+defmodule Plausible.Repo.Migrations.AddMonetaryValueToGoals do
+ use Ecto.Migration
+
+ def change do
+ alter table(:goals) do
+ add :currency, :"varchar(3)"
+ end
+ end
+end