Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped choice from uservote model #112

Merged
merged 2 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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