diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-08-05 15:58:36 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-08-05 15:58:47 +0200 |
commit | dd40216b6b23c812065d74e13e063eadde12b522 (patch) | |
tree | d7dfa304bbe7dced61f231c610359e895d162815 /sonar-core | |
parent | 42d098015ceadafb673aaf3f12c718c00e52b857 (diff) | |
download | sonarqube-dd40216b6b23c812065d74e13e063eadde12b522.tar.gz sonarqube-dd40216b6b23c812065d74e13e063eadde12b522.zip |
SONAR-5515 Fail to upgrade to 4.4 when a project was lastly analyzed with SonarQube 2.8 or less
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/migration/v44/Migration44Mapper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/migration/v44/Migration44Mapper.java b/sonar-core/src/main/java/org/sonar/core/persistence/migration/v44/Migration44Mapper.java index bd6d139f3b1..19075d6e9db 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/migration/v44/Migration44Mapper.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/migration/v44/Migration44Mapper.java @@ -32,7 +32,8 @@ public interface Migration44Mapper { // migration of measures "profile" and "profile_version" List<ProfileMeasure> selectProfileMeasures(); - int selectProfileVersion(long snapshotId); + @CheckForNull + Integer selectProfileVersion(long snapshotId); @CheckForNull Date selectProfileVersionDate(@Param("profileId") int profileId, @Param("profileVersion") int profileVersion); |