-
Notifications
You must be signed in to change notification settings - Fork 278
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
Add auto increment with identity option for Postgres #517
Comments
Hey @JoeyMckenzie and thanks for opening this issue. |
Good to know, was reading through past PRs and saw that the functionality is there, just hasn't been hooked up to DDL yet. Thank you, eagerly awaiting this release! |
Would really appreciate this feature for my current project! |
Hey all! Closing ❤️ |
After scouring issues and the docs, there does not seem to be an option for auto-incrementing PK identity columns. Take for example the following table:
Once applied, running
atlas schema inspect -d "postgres://some:user@someserver/somedatabase"
returns the following HCL:Dropping the table and re-applying the schema via an
atlas schema apply
re-creates the table, but without an auto-incrementing ID. Looking at the generated DDL:Inserts now have to be written in the form:
There seems to be an auto-incrementing option for MySQL, any plans for bringing that over for Postgres?
The text was updated successfully, but these errors were encountered: