From 05bf6d3bfa159044288599f314c940d2e2d7de6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20N=2E=20Wed=C3=B8e?= Date: Thu, 19 Dec 2024 15:51:01 +0100 Subject: [PATCH] Missing behandlingid in handling. --- .../V172__dvh_pesys_fix_migrated_anker_part2.kt | 1 + .../db/migration/V172__pesys_fix_extra_anke.sql | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 src/main/resources/db/migration/V172__pesys_fix_extra_anke.sql diff --git a/src/main/kotlin/db/migration/V172__dvh_pesys_fix_migrated_anker_part2.kt b/src/main/kotlin/db/migration/V172__dvh_pesys_fix_migrated_anker_part2.kt index f946f2563..9041a32a4 100644 --- a/src/main/kotlin/db/migration/V172__dvh_pesys_fix_migrated_anker_part2.kt +++ b/src/main/kotlin/db/migration/V172__dvh_pesys_fix_migrated_anker_part2.kt @@ -799,6 +799,7 @@ class V172__dvh_pesys_fix_migrated_anker_part2 : BaseJavaMigration() { "46722760" -> statistikkTilDVH.copy(behandlingId = "48384218", tekniskTid = LocalDateTime.now()) "46528912" -> statistikkTilDVH.copy(behandlingId = "48349418", tekniskTid = LocalDateTime.now()) "46469557" -> statistikkTilDVH.copy(behandlingId = "48387421", tekniskTid = LocalDateTime.now()) + "50207416" -> statistikkTilDVH.copy(behandlingId = "48387421", tekniskTid = LocalDateTime.now()) "46720470" -> statistikkTilDVH.copy(behandlingId = "48264729", tekniskTid = LocalDateTime.now()) "46564404" -> statistikkTilDVH.copy(behandlingId = "48352912", tekniskTid = LocalDateTime.now()) "46755697" -> statistikkTilDVH.copy(behandlingId = "48229906", tekniskTid = LocalDateTime.now()) diff --git a/src/main/resources/db/migration/V172__pesys_fix_extra_anke.sql b/src/main/resources/db/migration/V172__pesys_fix_extra_anke.sql new file mode 100644 index 000000000..fa35b68bc --- /dev/null +++ b/src/main/resources/db/migration/V172__pesys_fix_extra_anke.sql @@ -0,0 +1,9 @@ +UPDATE klage.mottak +SET dvh_referanse ='48387421' +WHERE kilde_referanse = '65083007' + AND dvh_referanse = '50207416'; + +UPDATE klage.behandling +SET dvh_referanse ='48387421' +WHERE kilde_referanse = '65083007' + AND dvh_referanse = '50207416'; \ No newline at end of file