mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +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,
|
timeZone: input.timeZone,
|
||||||
location: input.location,
|
location: input.location,
|
||||||
description: input.description,
|
description: input.description,
|
||||||
authorName: input.user?.name,
|
|
||||||
demo: input.demo,
|
demo: input.demo,
|
||||||
adminUrlId,
|
adminUrlId,
|
||||||
participantUrlId,
|
participantUrlId,
|
||||||
|
|
|
@ -77,7 +77,6 @@ export const demo = router({
|
||||||
type: "date",
|
type: "date",
|
||||||
location: "Starbucks, 901 New York Avenue",
|
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!`,
|
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,
|
demo: true,
|
||||||
adminUrlId,
|
adminUrlId,
|
||||||
participantUrlId: await nanoid(),
|
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[]
|
options Option[]
|
||||||
participants Participant[]
|
participants Participant[]
|
||||||
watchers Watcher[]
|
watchers Watcher[]
|
||||||
authorName String? @map("author_name")
|
|
||||||
demo Boolean @default(false)
|
demo Boolean @default(false)
|
||||||
comments Comment[]
|
comments Comment[]
|
||||||
legacy Boolean @default(false)
|
legacy Boolean @default(false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue