์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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
- branch ํ์ธ
- ![rejected]
- branch ์ญ์
- ์ฝ๋๋ธ๋ก
- ๋ธ๋์น ํ์ธ
- ๋ธ๋์น ์ญ์
- ์ฝ๋๋ธ๋ญ
- markdown
- ๋งํฌ๋ค์ด
- ๋ธ๋์น ์์ฑ
- branch ์์ฑ
- Git๋ช ๋ น์ด
Archives
- Today
- Total
DevLog
<Sequelize ์ค๋ฅ> Error: A column called 'id' was added to the attributes of 'Urls' but not marked with 'primaryKey: true' ๋ณธ๋ฌธ
๐ Error-log
<Sequelize ์ค๋ฅ> Error: A column called 'id' was added to the attributes of 'Urls' but not marked with 'primaryKey: true'
Seungjae Lee 2021. 10. 18. 22:50Sequelize๋ ํ ์ด๋ธ์ ์์ฑ ์, ์๋์ ์ผ๋ก id ์ปฌ๋ผ ์ถ๊ฐ์ PrimaryKey ์ค์ ์ ํด์ฃผ๋๋ฐ,
์ฌ์ฉ์๊ฐ ํ ์ด๋ธ์ ์์ฑํ ๋ ์์๋ก id ์ปฌ๋ผ์ ์ถ๊ฐํ์ ๊ฒฝ์ฐ ์์ ์๋ฌ๊ฐ ๋ฐ์ํ๋ค.
ํด๊ฒฐ๋ฐฉ๋ฒ์, ํ ์ด๋ธ์ ์์ฑํ ๋ id์ปฌ๋ผ์ ์ ์ธํ ๋๋จธ์ง ์ปฌ๋ผ๋ง ์ถ๊ฐํด์ฃผ๋ฉด ๋๋ค.
+ (createdAt, updatedAt ์ปฌ๋ผ๋ ์๋์ผ๋ก ์ถ๊ฐ๋๋ฏ๋ก ์ถ๊ฐํ ํ์ ์๋ค.)
'๐ Error-log' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Comments