🔥 Drop authorName from polls table (#616)

This commit is contained in:
Luke Vella 2023-03-27 16:03:46 +01:00 committed by GitHub
parent 860103fa11
commit 1f263a46db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 3 deletions

View file

@ -124,7 +124,6 @@ export const polls = router({
timeZone: input.timeZone,
location: input.location,
description: input.description,
authorName: input.user?.name,
demo: input.demo,
adminUrlId,
participantUrlId,

View file

@ -77,7 +77,6 @@ export const demo = router({
type: "date",
location: "Starbucks, 901 New York Avenue",
description: `Hey everyone, please choose the dates when you are available to meet for our monthly get together. Looking forward to see you all!`,
authorName: "Johnny",
demo: true,
adminUrlId,
participantUrlId: await nanoid(),

View file

@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `author_name` on the `polls` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "polls" DROP COLUMN "author_name";

View file

@ -44,7 +44,6 @@ model Poll {
options Option[]
participants Participant[]
watchers Watcher[]
authorName String? @map("author_name")
demo Boolean @default(false)
comments Comment[]
legacy Boolean @default(false)