Pull request #136: RED-2861: Ported legalbasis changes for rectangle redaction improvements

Merge in RED/persistence-service from RED-2861-lb-port to master

* commit 'b36f07000e7b6e387bd8e8c15784e274f613ee85':
  RED-2861: Ported legalbasis changes for rectangle redaction improvements
This commit is contained in:
Dominique Eiflaender 2021-11-30 12:28:27 +01:00
commit e09c640ed3
6 changed files with 9 additions and 0 deletions

View File

@ -18,5 +18,6 @@ public class LegalBasisChangeRequest {
private String comment;
private int page;
private String section;
private String value;
}

View File

@ -18,6 +18,7 @@ public class ManualLegalBasisChange {
private String user;
private AnnotationStatus status;
private String section;
private String value;
private String legalBasis;
private OffsetDateTime requestDate;
private OffsetDateTime processedDate;

View File

@ -29,6 +29,8 @@ public class ManualLegalBasisChangeEntity {
@Column
private String section;
@Column
private String value;
@Column
private String legalBasis;
@Column
private OffsetDateTime requestDate;

View File

@ -493,6 +493,7 @@ public class MigrationService {
.user(redaction.getUser())
.status(redaction.getStatus())
.section(redaction.getSection())
.value(redaction.getValue())
.legalBasis(redaction.getLegalBasis())
.requestDate(redaction.getRequestDate())
.processedDate(redaction.getProcessedDate())

View File

@ -20,6 +20,7 @@ public class ManualLegalBasisChangeRow {
private AnnotationStatus status;
private String legalBasis;
private String section;
private String value;
private OffsetDateTime requestDate;
private OffsetDateTime processedDate;
private OffsetDateTime softDeletedTime;

View File

@ -763,6 +763,9 @@ databaseChangeLog:
- column:
name: section
type: VARCHAR(255)
- column:
name: value
type: VARCHAR(4000)
- column:
name: soft_deleted_time
type: TIMESTAMP WITHOUT TIME ZONE