mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
convert report type before data migratino
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
This commit is contained in:
parent
54437ee9b8
commit
1825524e95
1 changed files with 2 additions and 3 deletions
|
|
@ -73,9 +73,8 @@ CREATE INDEX "pixel_team_id_idx" ON "pixel"("team_id");
|
||||||
CREATE INDEX "pixel_created_at_idx" ON "pixel"("created_at");
|
CREATE INDEX "pixel_created_at_idx" ON "pixel"("created_at");
|
||||||
|
|
||||||
-- DataMigration
|
-- DataMigration
|
||||||
UPDATE "report"
|
UPDATE "report" SET parameters = parameters - 'websiteId' - 'dateRange' WHERE type = 'funnel';
|
||||||
SET parameters = parameters - 'websiteId' - 'dateRange'
|
UPDATE "report" SET type = 'goal' WHERE type = 'goals';
|
||||||
WHERE type = 'funnel';
|
|
||||||
|
|
||||||
INSERT INTO "report" (report_id, user_id, website_id, type, name, description, parameters, created_at, updated_at)
|
INSERT INTO "report" (report_id, user_id, website_id, type, name, description, parameters, created_at, updated_at)
|
||||||
SELECT gen_random_uuid(),
|
SELECT gen_random_uuid(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue