Skip to content

Commit

Permalink
Increase post title length to 400 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Nov 23, 2023
1 parent af946cd commit aa3f3b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE `posts` MODIFY `title` VARCHAR(400) NOT NULL;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ model authors {

model posts {
id Int @id @default(autoincrement())
title String @db.VarChar(255)
title String @db.VarChar(400)
body String @db.Text
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
Expand Down

0 comments on commit aa3f3b9

Please sign in to comment.