Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🔥 Drop authorName from polls table (#616)
Luke Vella1f263a46dbeb
diff --git a/apps/web/src/server/routers/polls.ts b/apps/web/src/server/routers/polls.tsindex 40640f306..24fec8b4e 100644--- a/apps/web/src/server/routers/polls.ts+++ b/apps/web/src/server/routers/polls.ts@@ -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,diff --git a/apps/web/src/server/routers/polls/demo.ts b/apps/web/src/server/routers/polls/demo.tsindex 08564878a..87dc81813 100644--- a/apps/web/src/server/routers/polls/demo.ts+++ b/apps/web/src/server/routers/polls/demo.ts@@ -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(),diff --git a/packages/database/prisma/migrations/20230327105647_remove_author_name/migration.sql b/packages/database/prisma/migrations/20230327105647_remove_author_name/migration.sqlnew file mode 100644index 000000000..9cbfc33f4--- /dev/null+++ b/packages/database/prisma/migrations/20230327105647_remove_author_name/migration.sql@@ -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";diff --git a/packages/database/prisma/schema.prisma b/packages/database/prisma/schema.prismaindex d085bc9f4..c0426d29c 100644--- a/packages/database/prisma/schema.prisma+++ b/packages/database/prisma/schema.prisma@@ -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)