📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix charset
Blue Mousefaf6ef467159
diff --git a/backend/migrations/mysql/2026_03_31_data_import.sql b/backend/migrations/mysql/2026_03_31_data_import.sqlindex 09b4b3028..b4609b9a7 100644--- a/backend/migrations/mysql/2026_03_31_data_import.sql+++ b/backend/migrations/mysql/2026_03_31_data_import.sql@@ -16,4 +16,4 @@ CREATE TABLE IF NOT EXISTS `data_import` (PRIMARY KEY (`id`),KEY `FK_data_import_project` (`projectId`),CONSTRAINT `FK_data_import_project` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`) ON DELETE CASCADE-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;diff --git a/backend/migrations/mysql/2026_04_17_managed_proxy_domains.sql b/backend/migrations/mysql/2026_04_17_managed_proxy_domains.sqlindex a5d14a13d..0620ef90b 100644--- a/backend/migrations/mysql/2026_04_17_managed_proxy_domains.sql+++ b/backend/migrations/mysql/2026_04_17_managed_proxy_domains.sql@@ -15,4 +15,4 @@ CREATE TABLE IF NOT EXISTS `proxy_domain` (UNIQUE KEY `UQ_proxy_domain_target` (`proxyTargetId`),KEY `IDX_proxy_domain_project` (`projectId`),KEY `IDX_proxy_domain_status` (`status`)-) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;diff --git a/backend/migrations/mysql/2026_04_20_fix_collation.sql b/backend/migrations/mysql/2026_04_20_fix_collation.sqlnew file mode 100644index 000000000..dfb580db0--- /dev/null+++ b/backend/migrations/mysql/2026_04_20_fix_collation.sql@@ -0,0 +1,6 @@+-- Fix collation mismatch for tables created on MariaDB 10.10+, where the+-- server default collation changed to utf8mb4_uca1400_ai_ci. The rest of+-- the schema (notably `project`) uses utf8mb4_general_ci, so joins/filters+-- across these tables fail with ER_CANT_AGGREGATE_2COLLATIONS.+ALTER TABLE `proxy_domain` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;+ALTER TABLE `data_import` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;