mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
🔥 Drop authorName from polls table (#616)
This commit is contained in:
parent
860103fa11
commit
1f263a46db
4 changed files with 8 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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(),
|
||||
|
|
|
@ -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";
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue