doortts doortts 2016-01-27
group: Fix bug derived from evolution reset
@7c2a3052f0be137357c54d04453f62e9fe48bde8
app/models/IssueEvent.java
--- app/models/IssueEvent.java
+++ app/models/IssueEvent.java
@@ -50,8 +50,10 @@
     @Enumerated(EnumType.STRING)
     public EventType eventType;
 
+    @Lob
     public String oldValue;
 
+    @Lob
     public String newValue;
 
     private static final int DRAFT_TIME_IN_MILLIS = Configuration.root()
conf/evolutions/default/1.sql
--- conf/evolutions/default/1.sql
+++ conf/evolutions/default/1.sql
@@ -1,8 +1,8 @@
-# --- Created by Ebean DDL
-# To stop Ebean DDL generation, remove this comment and start using Evolutions
-
-# --- !Ups
-
+# --- Created by Ebean DDL
+# To stop Ebean DDL generation, remove this comment and start using Evolutions
+
+# --- !Ups
+
 create table assignee (
   id                        bigint auto_increment not null,
   user_id                   bigint,
@@ -112,8 +112,8 @@
   sender_email              varchar(255),
   issue_id                  bigint,
   event_type                varchar(34),
-  old_value                 varchar(255),
-  new_value                 varchar(255),
+  old_value                 longtext,
+  new_value                 longtext,
   constraint ck_issue_event_event_type check (event_type in ('NEW_ISSUE','NEW_POSTING','NEW_PULL_REQUEST','ISSUE_STATE_CHANGED','ISSUE_ASSIGNEE_CHANGED','PULL_REQUEST_STATE_CHANGED','NEW_COMMENT','NEW_REVIEW_COMMENT','MEMBER_ENROLL_REQUEST','PULL_REQUEST_MERGED','ISSUE_REFERRED_FROM_COMMIT','PULL_REQUEST_COMMIT_CHANGED','NEW_COMMIT','PULL_REQUEST_REVIEW_STATE_CHANGED','ISSUE_BODY_CHANGED','ISSUE_REFERRED_FROM_PULL_REQUEST','REVIEW_THREAD_STATE_CHANGED','ORGANIZATION_MEMBER_ENROLL_REQUEST','COMMENT_UPDATED')),
   constraint pk_issue_event primary key (id))
 ;
@@ -652,9 +652,9 @@
 alter table user_enrolled_organization add constraint fk_user_enrolled_organization_n4user_01 foreign key (user_id) references n4user (id) on delete restrict on update restrict;
 
 alter table user_enrolled_organization add constraint fk_user_enrolled_organization_organization_02 foreign key (organization_id) references organization (id) on delete restrict on update restrict;
-
-# --- !Downs
-
+
+# --- !Downs
+
 SET FOREIGN_KEY_CHECKS=0;
 
 drop table assignee;
conf/initial-data.yml
--- conf/initial-data.yml
+++ conf/initial-data.yml
@@ -23,7 +23,26 @@
         id:             2
         name:           member
         active:         true
-
+    - !!models.Role
+        id:             3
+        name:           sitemanager
+        active:         true
+    - !!models.Role
+        id:             4
+        name:           anonymous
+        active:         true
+    - !!models.Role
+        id:             5
+        name:           guest
+        active:         true
+    - !!models.Role
+        id:             6
+        name:           org_admin
+        active:         true
+    - !!models.Role
+        id:             7
+        name:           org_member
+        active:         true
 # Labels
 labels:
     - !!models.Label
Add a comment
List