diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-03-24 11:01:11 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2015-03-26 14:51:08 +0100 |
commit | a61164dda70bcfa11054c726d6b6ef160841aaae (patch) | |
tree | 4bee0bd996efd823094a262246a623bbb4960ae7 /sonar-core | |
parent | ddc22b4a3532a4559fa5ad96c1a5d362563a581e (diff) | |
download | sonarqube-a61164dda70bcfa11054c726d6b6ef160841aaae.tar.gz sonarqube-a61164dda70bcfa11054c726d6b6ef160841aaae.zip |
Remove dependency of migration on core persistence classes
Diffstat (limited to 'sonar-core')
2 files changed, 6 insertions, 0 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 8bffe19dd17..666dc2cb01a 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 @@ -46,6 +46,8 @@ public interface Migration44Mapper { QProfileDto44 selectProfileById(int id); // creation of columns RULES_PROFILES.CREATED_AT and UPDATED_AT + List<QProfileDto44> selectAllProfiles(); + @CheckForNull Date selectProfileCreatedAt(int profileId); diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/migration/v44/Migration44Mapper.xml b/sonar-core/src/main/resources/org/sonar/core/persistence/migration/v44/Migration44Mapper.xml index acd7f5ba775..81152148a37 100644 --- a/sonar-core/src/main/resources/org/sonar/core/persistence/migration/v44/Migration44Mapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/persistence/migration/v44/Migration44Mapper.xml @@ -47,6 +47,10 @@ and pm.value is not null </select> + <select id="selectAllProfiles" resultType="org.sonar.core.persistence.migration.v44.QProfileDto44"> + select id, kee as key, name, language from rules_profiles + </select> + <select id="selectProfileUpdatedAt" resultType="date" parameterType="int"> select max(change_date) from active_rule_changes where profile_id=#{id} |