-
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.
feat(prisma): add review "written at" date field
This patch adds a new `date` field to the `Review` object. This date field will be `NULL` for consumer reviews (as the written at date for consumer reviews will simply be createdAt/updatedAt). For critic reviews, this is a separate field as most of the time, the date when the critic review was originally written will be different from the date I imported it.
- Loading branch information
1 parent
e12c12d
commit 0f4c5e9
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
prisma/migrations/20230725043335_add_review_written_at_date/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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "Review" ADD COLUMN "date" TIMESTAMP(3); |
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