Skip to content

Commit

Permalink
Drop unused columns from User table
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mikepsinn committed Nov 20, 2024
1 parent 56cd4be commit db97d70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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";
3 changes: 0 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db97d70

Please sign in to comment.