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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
update migration
Brian Cao689091212ebb
diff --git a/db/postgresql/migrations/02_prisma_4_upgrade/migration.sql b/db/postgresql/migrations/02_prisma_4_upgrade/migration.sqlindex d52a495f2..b5a5767e3 100644--- a/db/postgresql/migrations/02_prisma_4_upgrade/migration.sql+++ b/db/postgresql/migrations/02_prisma_4_upgrade/migration.sql@@ -1,3 +1,39 @@+-- DropForeignKey+ALTER TABLE "event" DROP CONSTRAINT "event_session_id_fkey";++-- DropForeignKey+ALTER TABLE "event" DROP CONSTRAINT "event_website_id_fkey";++-- DropForeignKey+ALTER TABLE "pageview" DROP CONSTRAINT "pageview_session_id_fkey";++-- DropForeignKey+ALTER TABLE "pageview" DROP CONSTRAINT "pageview_website_id_fkey";++-- DropForeignKey+ALTER TABLE "session" DROP CONSTRAINT "session_website_id_fkey";++-- DropForeignKey+ALTER TABLE "website" DROP CONSTRAINT "website_user_id_fkey";++-- AddForeignKey+ALTER TABLE "event" ADD CONSTRAINT "event_session_id_fkey" FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE CASCADE ON UPDATE NO ACTION;++-- AddForeignKey+ALTER TABLE "event" ADD CONSTRAINT "event_website_id_fkey" FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE NO ACTION;++-- AddForeignKey+ALTER TABLE "pageview" ADD CONSTRAINT "pageview_session_id_fkey" FOREIGN KEY ("session_id") REFERENCES "session"("session_id") ON DELETE CASCADE ON UPDATE NO ACTION;++-- AddForeignKey+ALTER TABLE "pageview" ADD CONSTRAINT "pageview_website_id_fkey" FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE NO ACTION;++-- AddForeignKey+ALTER TABLE "session" ADD CONSTRAINT "session_website_id_fkey" FOREIGN KEY ("website_id") REFERENCES "website"("website_id") ON DELETE CASCADE ON UPDATE NO ACTION;++-- AddForeignKey+ALTER TABLE "website" ADD CONSTRAINT "website_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "account"("user_id") ON DELETE NO ACTION ON UPDATE NO ACTION;+-- RenameIndexALTER INDEX "account.username_unique" RENAME TO "account_username_key";