Skip to content

Commit

Permalink
Wrong type for the analysis_state_journal.error
Browse files Browse the repository at this point in the history
  • Loading branch information
ymolodkov committed Jan 10, 2025
1 parent c91dca6 commit 98bd997
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public List<Long> getIncompleteIds() {
Join<Analysis, AnalysisStateEntry> state = root.join(Analysis_.currentState, JoinType.LEFT);
javax.persistence.criteria.Path<String> stage = state.get(AnalysisStateEntry_.stage);
return q.where(
cb.isNull(root.get(Analysis_.error)),
cb.isNull(state.get(AnalysisStateEntry_.error)),
cb.or(stage.isNull(), stage.in(Stage.EXECUTE, Stage.INITIALIZE, Stage.ABORT))
);
}).getResultStream().map(Analysis::getId).collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE analysis_state_journal
ALTER COLUMN error TYPE VARCHAR;
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
UPDATE analysis_state_journal SET
stage = analyses.stage,
error = analyses.error
FROM analyses WHERE analyses.current_state_id = analysis_state_journal.id;

0 comments on commit 98bd997

Please sign in to comment.