Skip to content

armgit / umami

Public Imported from GitHub
0

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.

remove MySQL references from README

Francis Caoc9f522b24d7e
diff --git a/README.md b/README.md
index fcbe856f1..6d166d8c8 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ A detailed getting started guide can be found at [umami.is/docs](https://umami.i
### Requirements
- A server with Node.js version 18.18 or newer
-- A database. Umami supports [MariaDB](https://www.mariadb.org/) (minimum v10.5), [MySQL](https://www.mysql.com/) (minimum v8.0) and [PostgreSQL](https://www.postgresql.org/) (minimum v12.14) databases.
+- A database. Umami supports [PostgreSQL](https://www.postgresql.org/) (minimum v12.14) databases.
### Get the Source Code and Install Packages
@@ -58,7 +58,6 @@ The connection URL format:
```bash
postgresql://username:mypassword@localhost:5432/mydb
-mysql://username:mypassword@localhost:3306/mydb
```
### Build the Application
@@ -93,12 +92,6 @@ Alternatively, to pull just the Umami Docker image with PostgreSQL support:
docker pull docker.umami.is/umami-software/umami:postgresql-latest
```
-Or with MySQL support:
-
-```bash
-docker pull docker.umami.is/umami-software/umami:mysql-latest
-```
-
---
## 🔄 Getting Updates
diff --git a/src/lib/db.ts b/src/lib/db.ts
index 0ffedd0d8..72a18c062 100644
--- a/src/lib/db.ts
+++ b/src/lib/db.ts
@@ -1,6 +1,5 @@
export const PRISMA = 'prisma';
export const POSTGRESQL = 'postgresql';
-export const MYSQL = 'mysql';
export const CLICKHOUSE = 'clickhouse';
export const KAFKA = 'kafka';
export const KAFKA_PRODUCER = 'kafka-producer';
@@ -31,7 +30,7 @@ export async function runQuery(queries: any) {
const db = getDatabaseType();
- if (db === POSTGRESQL || db === MYSQL) {
+ if (db === POSTGRESQL) {
return queries[PRISMA]();
}
}