-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to declare IDENTITY
columns?
#380
Comments
Identity [1] is not supported yet. As a workaround to get the typing right you can set a default or use 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. |
|
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: