Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fix charset issues on mySQL (fixes #388)
Joe Innes3edae2a77d18
diff --git a/sql/schema.mysql.sql b/sql/schema.mysql.sqlindex a4fd87f05..0e05ec03d 100644--- a/sql/schema.mysql.sql+++ b/sql/schema.mysql.sql@@ -11,7 +11,7 @@ create table account (is_admin bool not null default false,created_at timestamp default current_timestamp,updated_at timestamp default current_timestamp-) ENGINE=InnoDB;+) ENGINE=InnoDB COLLATE=utf8_general_ci;create table website (website_id int unsigned not null auto_increment primary key,@@ -22,7 +22,7 @@ create table website (share_id varchar(64) unique,created_at timestamp default current_timestamp,foreign key (user_id) references account(user_id) on delete cascade-) ENGINE=InnoDB;+) ENGINE=InnoDB COLLATE=utf8_general_ci;create table session (session_id int unsigned not null auto_increment primary key,@@ -37,7 +37,7 @@ create table session (language varchar(35),country char(2),foreign key (website_id) references website(website_id) on delete cascade-) ENGINE=InnoDB;+) ENGINE=InnoDB COLLATE=utf8_general_ci;create table pageview (view_id int unsigned not null auto_increment primary key,@@ -48,7 +48,7 @@ create table pageview (referrer varchar(500),foreign key (website_id) references website(website_id) on delete cascade,foreign key (session_id) references session(session_id) on delete cascade-) ENGINE=InnoDB;+) ENGINE=InnoDB COLLATE=utf8_general_ci;create table event (event_id int unsigned not null auto_increment primary key,@@ -60,7 +60,7 @@ create table event (event_value varchar(50) not null,foreign key (website_id) references website(website_id) on delete cascade,foreign key (session_id) references session(session_id) on delete cascade-) ENGINE=InnoDB;+) ENGINE=InnoDB COLLATE=utf8_general_ci;create index website_user_id_idx on website(user_id);@@ -77,4 +77,4 @@ create index event_created_at_idx on event(created_at);create index event_website_id_idx on event(website_id);create index event_session_id_idx on event(session_id);-insert into account (username, password, is_admin) values ('admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa', true);\ No newline at end of file+insert into account (username, password, is_admin) values ('admin', '$2b$10$BUli0c.muyCW1ErNJc3jL.vFRFtFJWrT8/GcR4A.sUdCznaXiqFXa', true);