sequelize-auto
sequelize-auto copied to clipboard
PostgreSQL: autoIncrement property not being added for SERIAL columns in table
When programmatically generating schemas for tables, the autoIncrement
property is not being set in the returned schema for columns where the SERIAL
type has been added in the PostgreSQL table to define an auto-incrementing column.
Hmm, I thought we fixed this before. I'll take a look.
Hmm, it works for me. The SERIAL keyword creates a DEFAULT value for the column in the table. What does the DEFAULT look like for your column.
Also, what version of sequelize-auto are you using?
Is this still a problem?