Skip to content

Commit

Permalink
Merge pull request #880 from Daimler/feature-877-bugfix-old-reports-n…
Browse files Browse the repository at this point in the history
…ot-fetchable

Feature 877 bugfix old reports not fetchable
  • Loading branch information
de-jcup authored Nov 8, 2021
2 parents 5810a49 + 372dc14 commit 26ef8bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public class ScanReport {
@Column(name = COLUMN_RESULT)
private String result;

@Enumerated(STRING)
@Column(name = COLUMN_RESULT_TYPE)
private ScanReportResultType resultType;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Undo / revert string enum to (wrong) integer representation
UPDATE scan_report SET result_type ='1' WHERE result_type ='MODEL';
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- 0.27.0-server and 0.27.1-sesrver did store result enum values accidently as integers instead
-- using string representation - this was fixed already, but we must clean up wrong created entries
-- here as well (new reports only, old ones where already migrated to 'RESULT' )
UPDATE scan_report SET result_type ='MODEL' WHERE result_type ='1';

0 comments on commit 26ef8bd

Please sign in to comment.