Skip to content

Commit

Permalink
DB fix attempt 3 - optional everything in Rating
Browse files Browse the repository at this point in the history
  • Loading branch information
DCRepublic committed Nov 27, 2024
1 parent 2b6d56d commit 5a32c5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- AlterTable
ALTER TABLE "Rating" ALTER COLUMN "courseName" DROP NOT NULL,
ALTER COLUMN "courseNumber" DROP NOT NULL,
ALTER COLUMN "courseSubject" DROP NOT NULL,
ALTER COLUMN "profBannerId" DROP NOT NULL,
ALTER COLUMN "profDisplayName" DROP NOT NULL,
ALTER COLUMN "termTaken" DROP NOT NULL,
ALTER COLUMN "yearTaken" DROP NOT NULL,
ALTER COLUMN "profUid" DROP NOT NULL;
16 changes: 8 additions & 8 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,14 @@ model sectionAttribute {

model Rating {
id Int @id @default(autoincrement())
courseSubject String
courseNumber String
courseName String
profDisplayName String
profBannerId String
yearTaken Int
termTaken String
profUid String
courseSubject String?
courseNumber String?
courseName String?
profDisplayName String?
profBannerId String?
yearTaken Int?
termTaken String?
profUid String?
overallRating Int?
difficulty Int?
takeAgain Boolean?
Expand Down

0 comments on commit 5a32c5d

Please sign in to comment.