일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 네트워크
- 회고
- Batch
- programmers
- gcp ci/cd
- webhacking.kr
- 스프링 배치
- cloud run
- sequelize
- 리버싱
- pwnable.xyz
- Python
- kotest
- 시스템 해킹
- hackctf
- 파이썬
- gcp
- Baekjoon
- spring Batch
- 프로그래머스
- 보안
- gcp cloud build
- 포너블
- 웹보안
- 백준
- docker
- 웹해킹
- nodejs
- 사이버보안
- node.js
Archives
목록ERROR: Cannot read property 'toString' of undefined (1)
uju's Tech
[Sequelize: 기록용]sequelize migration 시 ERROR: Cannot read property 'toString' of undefined 에러
sequelize 에서 데이터베이스 마이그레이션 시 ERROR: Cannot read property 'toString' of undefined 에러가 발생할 때가 있는데 changeColumn 등 을 이용할 때 해당 칼럼의 타입을 꼭 명시해주어야한다. type을 명시해주지 않고 마이그레이션하면 위와 같은 에러 발생한다. - 에러 상황 await queryInterface.changeColumn('users', 'serviceId', { allowNull: true, }, { transaction }); - 해결 await queryInterface.changeColumn('users', 'serviceId', { type: Sequelize.UUID, allowNull: true, }, { transa..
Node
2021. 7. 30. 21:23