code: private void updateEnumOptions(EntityType entityType, Attribute attr, Attribute updatedAttr) {
      if (attr.getDataType() == ENUM) {
        if (updatedAttr.getDataType() == ENUM) {
          // update check constraint
          dropCheckConstraint(entityType, attr);
          createCheckConstraint(entityType, updatedAttr);
        } else {
          // drop check constraint
          dropCheckConstraint(entityType, attr);
        }
      } else {
        if (updatedAttr.getDataType() == ENUM) {
          createCheckConstraint(entityType, updatedAttr);
        }
      }
    }
docs: Updates check constraint based on enum value changes.
  
  @param entityType entity meta data
  @param attr current attribute
  @param updatedAttr updated attribute