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
remove default deleted_at
Francis Caobc73410dba10
diff --git a/db/postgresql/migrations/04_team_redesign/migration.sql b/db/postgresql/migrations/04_team_redesign/migration.sqlindex 68b96ab00..91726316b 100644--- a/db/postgresql/migrations/04_team_redesign/migration.sql+++ b/db/postgresql/migrations/04_team_redesign/migration.sql@@ -5,7 +5,7 @@*/-- AlterTable-ALTER TABLE "team" ADD COLUMN "deleted_at" TIMESTAMPTZ(6) DEFAULT CURRENT_TIMESTAMP,+ALTER TABLE "team" ADD COLUMN "deleted_at" TIMESTAMPTZ(6),ADD COLUMN "logo_url" VARCHAR(2183);-- AlterTable@@ -26,6 +26,4 @@ DROP TABLE "team_website";CREATE INDEX "website_team_id_idx" ON "website"("team_id");-- CreateIndex-CREATE INDEX "website_created_by_idx" ON "website"("created_by");--+CREATE INDEX "website_created_by_idx" ON "website"("created_by");\ No newline at end of filediff --git a/db/postgresql/schema.prisma b/db/postgresql/schema.prismaindex 3f1838be5..31cc7616d 100644--- a/db/postgresql/schema.prisma+++ b/db/postgresql/schema.prisma@@ -168,7 +168,7 @@ model Team {logoUrl String? @map("logo_url") @db.VarChar(2183)createdAt DateTime? @default(now()) @map("created_at") @db.Timestamptz(6)updatedAt DateTime? @updatedAt @map("updated_at") @db.Timestamptz(6)- deletedAt DateTime? @default(now()) @map("deleted_at") @db.Timestamptz(6)+ deletedAt DateTime? @map("deleted_at") @db.Timestamptz(6)website Website[]teamUser TeamUser[]