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.

Fixed Prisma docker error.

Mike Caod43293da7216
diff --git a/Dockerfile b/Dockerfile
index 0f7c2d350..824c16db0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,7 +36,7 @@ RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
RUN set -x \
- && apk add --no-cache curl \
+ && apk add --no-cache curl openssl \
&& yarn add npm-run-all dotenv semver [email protected]
# You only need to copy next.config.js if you are NOT using the default configuration
diff --git a/db/postgresql/schema.prisma b/db/postgresql/schema.prisma
index 364986dcd..504f70e50 100644
--- a/db/postgresql/schema.prisma
+++ b/db/postgresql/schema.prisma
@@ -1,5 +1,6 @@
generator client {
- provider = "prisma-client-js"
+ provider = "prisma-client-js"
+ binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}
datasource db {
@@ -19,8 +20,8 @@ model User {
updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)
deletedAt DateTime? @map("deleted_at") @db.Timestamptz(6)
- websiteUser Website[] @relation("user")
- websiteCreateUser Website[] @relation("createUser")
+ websiteUser Website[] @relation("user")
+ websiteCreateUser Website[] @relation("createUser")
teamUser TeamUser[]
report Report[]
@@ -112,7 +113,6 @@ model WebsiteEvent {
@@index([visitId])
@@index([websiteId])
@@index([websiteId, createdAt])
-
@@index([websiteId, createdAt, urlPath])
@@index([websiteId, createdAt, urlQuery])
@@index([websiteId, createdAt, referrerDomain])
@@ -150,7 +150,7 @@ model SessionData {
id String @id() @map("session_data_id") @db.Uuid
websiteId String @map("website_id") @db.Uuid
sessionId String @map("session_id") @db.Uuid
- dataKey String @map("data_key") @db.VarChar(500)
+ dataKey String @map("data_key") @db.VarChar(500)
stringValue String? @map("string_value") @db.VarChar(500)
numberValue Decimal? @map("number_value") @db.Decimal(19, 4)
dateValue DateTime? @map("date_value") @db.Timestamptz(6)