Hey Yogi, thanks for the great post.
How are you handling migrations where some of the enum values are removed? Existing data are using an enum value which should be removed now.
For example, you have this enum ('PREPARING', 'WAITING_PICKUP',
'IN_DELIVERY', 'DELIVERED', 'OTHERS') and now PREPARING is to be renamed to PACKAGING. Existing data(a large amount of production one) are using the value 'PREPARING'.
Hey Yogi, thanks for the great post.
How are you handling migrations where some of the enum values are removed? Existing data are using an enum value which should be removed now.
For example, you have this enum
('PREPARING', 'WAITING_PICKUP',
and now'IN_DELIVERY', 'DELIVERED', 'OTHERS')
PREPARING
is to be renamed toPACKAGING
. Existing data(a large amount of production one) are using the value 'PREPARING'.I've figured it out.
This query worked out brilliantly.
Thanks again.