Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🗑️ Drop deprecated guest_id columns from polls, participants, comments (#2477)

Luke Vellade0788a26200
diff --git a/packages/database/prisma/migrations/20260620115022_drop_guest_id_columns/migration.sql b/packages/database/prisma/migrations/20260620115022_drop_guest_id_columns/migration.sql
new file mode 100644
index 000000000..1ea866428
--- /dev/null
+++ b/packages/database/prisma/migrations/20260620115022_drop_guest_id_columns/migration.sql
@@ -0,0 +1,16 @@
+/*
+ Warnings:
+
+ - You are about to drop the column `guest_id` on the `comments` table. All the data in the column will be lost.
+ - You are about to drop the column `guest_id` on the `participants` table. All the data in the column will be lost.
+ - You are about to drop the column `guest_id` on the `polls` table. All the data in the column will be lost.
+
+*/
+-- AlterTable
+ALTER TABLE "comments" DROP COLUMN "guest_id";
+
+-- AlterTable
+ALTER TABLE "participants" DROP COLUMN "guest_id";
+
+-- AlterTable
+ALTER TABLE "polls" DROP COLUMN "guest_id";
diff --git a/packages/database/prisma/models/poll.prisma b/packages/database/prisma/models/poll.prisma
index 69987c932..66d35bb2d 100644
--- a/packages/database/prisma/models/poll.prisma
+++ b/packages/database/prisma/models/poll.prisma
@@ -31,7 +31,6 @@ model Poll {
description String?
location String?
userId String? @map("user_id")
- guestId String? @map("guest_id") // @deprecated - legacy NextAuth field, no longer used
timeZone String? @map("time_zone")
status PollStatus @default(open)
kind PollKind @default(date)
@@ -66,7 +65,6 @@ model Participant {
name String
email String?
userId String? @map("user_id")
- guestId String? @map("guest_id") // @deprecated - legacy NextAuth field, no longer used
pollId String @map("poll_id")
locale String?
timeZone String? @map("time_zone")
@@ -132,7 +130,6 @@ model Comment {
pollId String @map("poll_id")
authorName String @map("author_name")
userId String? @map("user_id")
- guestId String? @map("guest_id") // @deprecated - legacy NextAuth field, no longer used
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime? @updatedAt @map("updated_at")