Notice
Recent Posts
Recent Comments
Link
프로그래밍 공부방
[Prisma] The provided value for the column is too long for the column's type 에러 본문
백엔드
[Prisma] The provided value for the column is too long for the column's type 에러
김갱갱 2023. 6. 4. 18:57🔥에러 내용: The provided value for the column is too long for the column's type
prisma 이미지를 추가하기 위해서 이미지의 url을 넣어주는 작업을 하던 도중에 오류가 발생했습니다.
🤷♀️Why?🤷♀️
저장할 데이터의 길이가 지정한 type의 크기보다 크기 때문에 발생한 오류입니다.
✨해결 방법
model User {
...
avatar String? @db.Text
...
}
@db.Text를 추가해줘서더 긴 길이의 데이터를 넣을 수 있게 해주었습니다.
'백엔드' 카테고리의 다른 글
[Linux] 우분투에서 Git 리포지토리 가져오기(git clone) (0) | 2023.06.20 |
---|