fix-media #32

Merged
rafiarrafif merged 3 commits from fix-media into main 2026-04-24 10:31:42 +07:00
3 changed files with 24 additions and 0 deletions
Showing only changes of commit baf7ba20b1 - Show all commits

View File

@ -0,0 +1,10 @@
/*
Warnings:
- Made the column `season` on table `medias` required. This step will fail if there are existing NULL values in that column.
- Made the column `yearReleased` on table `medias` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "medias" ALTER COLUMN "season" SET NOT NULL,
ALTER COLUMN "yearReleased" SET NOT NULL;

View File

@ -36,8 +36,8 @@ model Media {
status String status String
startAiring DateTime? startAiring DateTime?
endAiring DateTime? endAiring DateTime?
season Season? season Season
yearReleased Int? @db.SmallInt yearReleased Int @db.SmallInt
synopsis String @db.Text synopsis String @db.Text
ageRating String ageRating String
mediaType MediaType mediaType MediaType