Skip to content

Commit db97d70

Browse files
committed
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
1 parent 56cd4be commit db97d70

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the column `callScript` on the `User` table. All the data in the column will be lost.
5+
- You are about to drop the column `messageTemplate` on the `User` table. All the data in the column will be lost.
6+
- You are about to drop the column `targetLocation` on the `User` table. All the data in the column will be lost.
7+
8+
*/
9+
-- AlterTable
10+
ALTER TABLE "User" DROP COLUMN "callScript",
11+
DROP COLUMN "messageTemplate",
12+
DROP COLUMN "targetLocation";

prisma/schema.prisma

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ model User {
163163
petitionComments PetitionComment[]
164164
petitionFollows PetitionFollow[]
165165
repMessages PetitionRepMessage[]
166-
targetLocation String? // e.g., "state", "federal"
167-
messageTemplate String? @db.Text // Default message template
168-
callScript String? @db.Text // Default call script
169166
}
170167

171168
// Need this to create digital twins for people that are not users

0 commit comments

Comments
 (0)