Relative Content

Tag Archive for databasesequelize.jspsql

null value in column “id” of relation violates not-null constraint with AutoIncrementIdentity via Sequelize

i’ve created a migration file and state field to be like the following.
for an example “project” table , then i ready a seed file , but because of the following error that cause seed failure
but if i change autoIncrementIdentiy to autoIncrement :true everything will works fine ,but i don’t know why cannot i use “autoIncrementIdentiy
i need to solve it , please share your idea on how to seed data it with autoIncrementIdentity