convert report type before data migratino
This commit is contained in:
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user