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
We should add support for a simple way to rename a label in an enum. PostgreSQL does not support renaming labels. PostgreSQL users have to drop the old enum and recreate it with the new label.
Other enum related operations are good enough as raw migrations.
The text was updated successfully, but these errors were encountered:
Creating a new enum type, dropping an existing enum type and adding new label to an enum is a simple operation, it does not need its own dedicated pgroll migration. Pgroll is meant to support users in migrations that need two schema version at the same time or to avoid unnecessary locking of tables.
Renaming existing labels in an enum type could be a potential new operation, as it consists of several steps (dropping the old and recreating the enum with new label name), and database clients might want to use both old and new label name during the testing phase.
kvch
changed the title
Add support for managing enumerated types
Add support for renaming labels in PostgreSQL enums
Jan 20, 2025
We should add support for a simple way to rename a label in an enum. PostgreSQL does not support renaming labels. PostgreSQL users have to drop the old enum and recreate it with the new label.
Other enum related operations are good enough as raw migrations.
The text was updated successfully, but these errors were encountered: