Comments (1)
~/src/sequelize/migrations
에서 FK 처리를 하면서 onUpdate, onDelete 옵션을 별도로 명시해주었습니다.
// ~/src/sequelize/migartions/z-create-pin-comment.js 내부에서...
commentId: {
allowNull: false,
type: Sequelize.INTEGER,
onUpdate: 'cascade',
onDelete: 'cascade',
references: {
model: 'Comments', // company migration define
key: 'commentId'
}
}
실제로 워크밴치에서 확인해보니 정상적으로 적용이 된 것을 볼 수 있었습니다.
from pinterestbe.
Related Issues (9)
- Bug : git clone permission denied HOT 1
- Bug : sequelize db;create error HOT 2
- Bug : Migrate 를 했음에도 FK 가 안걸리는 이슈 HOT 3
- Bug : Git commit error
- Bug : Kakao Userdata 고유키 의 타입이 int 의 범위를 초과
- Docs : EC2 + RDS + S3 설정 하기!
- Docs : multer로 image 업로드 시 S3 버킷 퍼블릭 액세스 차단 설정
- Docs : EC2 인스턴스 셋업 총괄 (Git, Node, Nginx 까지)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pinterestbe.