Alter type rename value of enum #1206
-
I have an enum named Within a migration I am altering the type of Does the alter type need an explicit data migration for already existing data with status |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
right now Alembic doesn't have any functionality for taking care of PostgreSQL or MySQL ENUM datatypes. It's a long term goal that's on the autogenerate for enums tag. so for now you would need to use |
Beta Was this translation helpful? Give feedback.
-
Hi,
Assuming postgresql, alter type is a command of the db, it's not something provided by alembic, so this is not really a database question. To answer the question, no other change is needed to the existing data |
Beta Was this translation helpful? Give feedback.
Hi,
Assuming postgresql, alter type is a command of the db, it's not something provided by alembic, so this is not really a database question.
You would refer to their doc for it https://www.postgresql.org/docs/current/sql-altertype.html.
To answer the question, no other change is needed to the existing data