You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Identity [1] is not supported yet. As a workaround to get the typing right you can set a default or use .notNull().
Unfortunately there is not a workaround for the migration generation. This needs to support identity. I'm planning to find some time again the coming weeks to work on Mammoth. I'll add this to my list.
.notNull() on its own didn't work because then the field is still required when calling .insertInto. But .default('') works fine for us, since we're not using Mammoth schema generation/migration.
Postgres recommends using
IDENTITY
(introduced in v10) instead ofSERIAL
: https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_serialHow should I declare such a column in my Mammoth table schema? This is what I'm doing now:
The text was updated successfully, but these errors were encountered: