diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2011-10-24 13:04:13 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2011-10-24 13:06:12 +0200 |
commit | d31106672fa752edff92f10522424f88c1521de6 (patch) | |
tree | faa59d7f8b055b738d0672e1a4c03b1ac45256c6 /sonar-plugin-api/src | |
parent | 5636c4efae827b345ad1ec15de0b7c1dfa4814c6 (diff) | |
download | sonarqube-d31106672fa752edff92f10522424f88c1521de6.tar.gz sonarqube-d31106672fa752edff92f10522424f88c1521de6.zip |
SONAR-2919 Update Events table
Migration script:
- name column => 400
- description column => 4000
- data column removed
- tries to attach snapshots to events that do not have one
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java index fa2263548d6..5a5a5404c8e 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/Event.java @@ -37,10 +37,10 @@ public class Event extends BaseIdentifiable { public static final String CATEGORY_ALERT = "Alert"; public static final String CATEGORY_PROFILE = "Profile"; - @Column(name = "name", updatable = true, nullable = true, length = 50) + @Column(name = "name", updatable = true, nullable = true, length = 400) private String name; - @Column(name = "description", updatable = true, nullable = true, length = 3072) + @Column(name = "description", updatable = true, nullable = true, length = 4000) private String description; @Column(name = "category", updatable = true, nullable = true, length = 50) @@ -59,9 +59,6 @@ public class Event extends BaseIdentifiable { @Column(name = "resource_id", updatable = true, nullable = true) private Integer resourceId; - @Column(name = "data", updatable = true, nullable = true, length = 4000) - private String data; - public Event() { } @@ -163,15 +160,6 @@ public class Event extends BaseIdentifiable { return this; } - public String getData() { - return data; - } - - public Event setData(String data) { - this.data = data; - return this; - } - @Override public String toString() { return new ToStringBuilder(this) |