Serial conversion for existing columns
Extend ALTER TABLE ALTER COLUMN TYPE to apply the serial shorthand to existing columns, including its sequence-backed default and NOT NULL constraint.
Versions
- PostgreSQL 17 · worked-on · improved · moderate
Extend ALTER TABLE ALTER COLUMN TYPE to apply the serial shorthand to existing columns, including its sequence-backed default and NOT NULL constraint.