From db97d70c0781190ac7435cc0ac1b60aff6dfe78b Mon Sep 17 00:00:00 2001 From: "Mike P. Sinn" Date: Tue, 19 Nov 2024 23:25:05 -0600 Subject: [PATCH] Drop unused columns from User table Removed `callScript`, `messageTemplate`, and `targetLocation` fields from the `User` table due to their redundancy. This action will also delete any existing data in these columns. Took 12 minutes --- .../migration.sql | 12 ++++++++++++ prisma/schema.prisma | 3 --- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 prisma/migrations/20241120051740_remoted_petition_user_fields/migration.sql diff --git a/prisma/migrations/20241120051740_remoted_petition_user_fields/migration.sql b/prisma/migrations/20241120051740_remoted_petition_user_fields/migration.sql new file mode 100644 index 00000000..e45b0bd3 --- /dev/null +++ b/prisma/migrations/20241120051740_remoted_petition_user_fields/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - You are about to drop the column `callScript` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `messageTemplate` on the `User` table. All the data in the column will be lost. + - You are about to drop the column `targetLocation` on the `User` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "User" DROP COLUMN "callScript", +DROP COLUMN "messageTemplate", +DROP COLUMN "targetLocation"; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index e16e7de6..d4b5931c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -163,9 +163,6 @@ model User { petitionComments PetitionComment[] petitionFollows PetitionFollow[] repMessages PetitionRepMessage[] - targetLocation String? // e.g., "state", "federal" - messageTemplate String? @db.Text // Default message template - callScript String? @db.Text // Default call script } // Need this to create digital twins for people that are not users