Skip to content
Snippets Groups Projects
Unverified Commit 1d178e44 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Better handling of issues caused by time traveling (RiskResults) (DEV) #2019


* Change primary key for risk result database to a monotonic ID.
This prevents time travel from breaking "get latest" as we will get the latest by monotonic ID, instead of "calculatedAt".

* We don't need `fallbackToDestructiveMigrationFrom(3)` until we actually upgrade the schema to 3.

* Fix database test (missing monotonicId)

* Catch exceptions during migrations and recreate the table.

* Add check for result size after recreating+insertion.

Co-authored-by: default avatarRalf Gehrer <ralfgehrer@users.noreply.github.com>
parent ced78ecc
No related branches found
No related tags found
No related merge requests found
Showing with 567 additions and 10 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment