From d31106672fa752edff92f10522424f88c1521de6 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Mon, 24 Oct 2011 13:04:13 +0200 Subject: 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 --- .../src/main/java/org/sonar/api/batch/Event.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'sonar-plugin-api/src') 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) -- cgit v1.2.3