forked from umami-software/umami
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request umami-software#2684 from umami-software/hotfix2
v2.11.2
- Loading branch information
Showing
128 changed files
with
4,081 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
CREATE TABLE umami.event_data_new | ||
( | ||
website_id UUID, | ||
session_id UUID, | ||
event_id UUID, | ||
url_path String, | ||
event_name String, | ||
data_key String, | ||
string_value Nullable(String), | ||
number_value Nullable(Decimal64(4)), | ||
date_value Nullable(DateTime('UTC')), | ||
data_type UInt32, | ||
created_at DateTime('UTC'), | ||
job_id Nullable(UUID) | ||
) | ||
engine = MergeTree | ||
ORDER BY (website_id, event_id, data_key, created_at) | ||
SETTINGS index_granularity = 8192; | ||
|
||
INSERT INTO umami.event_data_new | ||
SELECT website_id, | ||
session_id, | ||
event_id, | ||
url_path, | ||
event_name, | ||
event_key, | ||
string_value, | ||
number_value, | ||
date_value, | ||
data_type, | ||
created_at, | ||
NULL | ||
FROM umami.event_data; | ||
|
||
CREATE TABLE umami.session_data | ||
( | ||
website_id UUID, | ||
session_id UUID, | ||
data_key String, | ||
string_value Nullable(String), | ||
number_value Nullable(Decimal64(4)), | ||
date_value Nullable(DateTime('UTC')), | ||
data_type UInt32, | ||
created_at DateTime('UTC'), | ||
job_id Nullable(UUID) | ||
) | ||
engine = MergeTree | ||
ORDER BY (website_id, session_id, data_key, created_at) | ||
SETTINGS index_granularity = 8192; | ||
|
||
RENAME TABLE umami.event_data TO umami.event_data_old; | ||
RENAME TABLE umami.event_data_new TO umami.event_data; | ||
|
||
/* | ||
DROP TABLE umami.event_data_old | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
-- DropIndex | ||
DROP INDEX `event_data_website_id_created_at_event_key_idx` ON `event_data`; | ||
|
||
-- DropIndex | ||
DROP INDEX `event_data_website_id_website_event_id_created_at_idx` ON `event_data`; | ||
|
||
-- AlterTable | ||
ALTER TABLE `event_data` RENAME COLUMN `event_key` TO `data_key`; | ||
|
||
-- AlterTable | ||
ALTER TABLE `session_data` RENAME COLUMN `event_key` TO `data_key`; | ||
|
||
-- CreateIndex | ||
CREATE INDEX `event_data_website_id_created_at_data_key_idx` ON `event_data`(`website_id`, `created_at`, `data_key`); | ||
|
||
-- CreateIndex | ||
CREATE INDEX `session_data_session_id_created_at_idx` ON `session_data`(`session_id`, `created_at`); | ||
|
||
-- CreateIndex | ||
CREATE INDEX `session_data_website_id_created_at_data_key_idx` ON `session_data`(`website_id`, `created_at`, `data_key`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
-- DropIndex | ||
DROP INDEX IF EXISTS "event_data_website_id_created_at_event_key_idx"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "event_data" RENAME COLUMN "event_key" TO "data_key"; | ||
|
||
-- AlterTable | ||
ALTER TABLE "session_data" DROP COLUMN "deleted_at"; | ||
ALTER TABLE "session_data" RENAME COLUMN "session_key" TO "data_key"; | ||
|
||
-- CreateIndex | ||
CREATE INDEX "event_data_website_id_created_at_data_key_idx" ON "event_data"("website_id", "created_at", "data_key"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "session_data_session_id_created_at_idx" ON "session_data"("session_id", "created_at"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "session_data_website_id_created_at_data_key_idx" ON "session_data"("website_id", "created_at", "data_key"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "umami", | ||
"version": "2.11.1", | ||
"version": "2.11.2", | ||
"description": "A simple, fast, privacy-focused alternative to Google Analytics.", | ||
"author": "Umami Software, Inc. <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -66,7 +66,7 @@ | |
"dependencies": { | ||
"@clickhouse/client": "^0.2.2", | ||
"@fontsource/inter": "^4.5.15", | ||
"@prisma/client": "5.11.0", | ||
"@prisma/client": "5.12.1", | ||
"@prisma/extension-read-replicas": "^0.3.0", | ||
"@react-spring/web": "^9.7.3", | ||
"@tanstack/react-query": "^5.28.6", | ||
|
@@ -102,7 +102,7 @@ | |
"next-basics": "^0.39.0", | ||
"node-fetch": "^3.2.8", | ||
"npm-run-all": "^4.1.5", | ||
"prisma": "5.11.0", | ||
"prisma": "5.12.1", | ||
"react": "^18.2.0", | ||
"react-basics": "^0.123.0", | ||
"react-beautiful-dnd": "^13.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.