[midPoint-git] [Evolveum/midpoint] ce6cc3: Fix repo values for RTaskWaitingReason

mederly noreply at github.com
Thu Apr 2 12:26:32 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: ce6cc3630faa8a0a9aa180deff2891fd126befcc
      https://github.com/Evolveum/midpoint/commit/ce6cc3630faa8a0a9aa180deff2891fd126befcc
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2020-04-02 (Thu, 02 Apr 2020)

  Changed paths:
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/enums/RTaskWaitingReason.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/util/RUtil.java

  Log Message:
  -----------
  Fix repo values for RTaskWaitingReason

In 3.9 this enum has values of 0, 1, 2. In 4.0 the "1" was removed,
shifting value of 2 to 1. Fortunately, since 4.0 we don't use values
other than 0 (at least it seems so); but in order to avoid migration
issues we now restored the deleted value of 1 as a placeholder.

Mapping of enums should be changed to be less fragile. Until that,
we CANNOT delete intermediary values from R-enums to avoid this kind
of problems.

This resolves MID-6117.




More information about the midPoint-svn mailing list