Skip to content

Commit

Permalink
Dropped choice from uservote model (#112)
Browse files Browse the repository at this point in the history
Co-authored-by: Automated Version Bump <[email protected]>
  • Loading branch information
Devorein and Automated Version Bump authored Aug 31, 2023
1 parent a7a1658 commit 54ae238
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charmverse/core",
"version": "0.3.17",
"version": "0.3.18-rc-feat-multi-choi.0",
"description": "Core API for Charmverse",
"type": "commonjs",
"types": "./dist/cjs/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- You are about to drop the column `choice` on the `UserVote` table. All the data in the column will be lost.
*/
-- AlterTable
ALTER TABLE "UserVote" DROP COLUMN "choice";
4 changes: 1 addition & 3 deletions src/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,6 @@ model UserVote {
userId String @db.Uuid
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
// choice - old field, left for backward compatibility
choice String?
choices String[] @default([])
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
vote Vote @relation(fields: [voteId], references: [id], onDelete: Cascade)
Expand Down Expand Up @@ -1116,7 +1114,7 @@ model Proposal {
evaluationType ProposalEvaluationType @default(vote)
rubricCriteria ProposalRubricCriteria[]
rubricAnswers ProposalRubricCriteriaAnswer[]
fields Json?
fields Json?
@@index([spaceId])
@@index([reviewedBy])
Expand Down

0 comments on commit 54ae238

Please sign in to comment.