Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

set tierCurrency to USD for all users who are paying for service

Blue Mouseec810168c850
diff --git a/migrations/mysql/2023_05_22.sql b/migrations/mysql/2023_05_22.sql
index 00bf5f4a3..326a307d4 100644
--- a/migrations/mysql/2023_05_22.sql
+++ b/migrations/mysql/2023_05_22.sql
@@ -1 +1,2 @@
alter table user add column `tierCurrency` varchar(3) DEFAULT NULL AFTER cancellationEffectiveDate;
+update user set tierCurrency='USD' where planCode != 'none' and planCode != 'free';