diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-11-05 16:21:28 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-11-05 16:21:28 +0100 |
commit | 3ad61ba840c9864221235fab3824348cd8ee79db (patch) | |
tree | 343e22b1043597d419c7b4728b27cc6f6bc35212 /sonar-core | |
parent | 1116951df8188cb5e6735a31bfa3255ee690ee5c (diff) | |
parent | af66bd7b20a5efb5f6f2b73c0fe2adcad93b59b6 (diff) | |
download | sonarqube-3ad61ba840c9864221235fab3824348cd8ee79db.tar.gz sonarqube-3ad61ba840c9864221235fab3824348cd8ee79db.zip |
Merge remote-tracking branch 'origin/branch-4.5'
Conflicts:
server/sonar-server/src/main/java/org/sonar/server/db/migrations/v451/AddMissingCustomRuleParametersMigration.java
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java b/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java index 4f78491095a..a6c41647f4c 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/migration/v45/Migration45Mapper.java @@ -19,10 +19,7 @@ */ package org.sonar.core.persistence.migration.v45; -import org.apache.ibatis.annotations.Insert; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Result; -import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.*; import java.util.Date; import java.util.List; @@ -53,9 +50,11 @@ public interface Migration45Mapper { @Insert("INSERT INTO rules_parameters (rule_id, name, param_type, default_value, description)" + " VALUES (#{ruleId}, #{name}, #{type}, #{defaultValue}, #{description})") + @Options(useGeneratedKeys = false) void insertRuleParameter(RuleParameter ruleParameter); @Insert("UPDATE rules SET updated_at=#{date} WHERE id=#{id}") + @Options(useGeneratedKeys = false) void updateRuleUpdateAt(@Param("id") Integer ruleId, @Param("date") Date updatedAt); } |