Skip to content

Commit

Permalink
Add constraint on table Task for field 'content'
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuget committed Nov 22, 2021
1 parent 0386287 commit aa2145c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:
- Made the column `content` on table `Task` required. This step will fail if there are existing NULL values in that column.
*/
-- AlterTable
ALTER TABLE "Task" ALTER COLUMN "content" SET NOT NULL;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ model Task {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
content String?
content String
status String @default("TO_DO")
}

0 comments on commit aa2145c

Please sign in to comment.