-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(prisma): don't require review titles
This patch updates the `Review` model to make the `title` attribute nullable so that we store NULLs in database instead of empty strings.
- Loading branch information
1 parent
80f5d55
commit 3aef447
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
prisma/migrations/20230723073936_don_t_require_review_titles/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- AlterTable | ||
ALTER TABLE "Review" ALTER COLUMN "title" DROP NOT NULL, | ||
ALTER COLUMN "title" DROP DEFAULT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters