-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Autoincrement via identity columns on PostgreSQL #5396
Conversation
We need to move the migration steps to the documentation, although I'm not sure where exactly. @greg0ire do you have any ideas? |
I guess you're implying these migration steps are too long to be included in UPGRADE.md? I think they would qualify as a how-to guide. Let's create |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This simplifies the code nicely 🙂
See #4744. Fixes #3619, #4458, #4745, #5614 .
Note that in order to replicate the state of the serial column sequences in the identity columns, manual migration is required.
Without the above migration, the identity column sequences will be created from scratch and will produce values starting from
1
.The migration can be tested as: