From c6f57d86952edf0e6e6684b0e3297761e3acaa05 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Fri, 22 Nov 2024 09:25:47 +0100 Subject: [PATCH] Remove duplicates created b/c missing rollback. --- .../V161__delete_duplicate_ankeitr_more.sql | 281 ++++++++++++++++++ 1 file changed, 281 insertions(+) create mode 100644 src/main/resources/db/migration/V161__delete_duplicate_ankeitr_more.sql diff --git a/src/main/resources/db/migration/V161__delete_duplicate_ankeitr_more.sql b/src/main/resources/db/migration/V161__delete_duplicate_ankeitr_more.sql new file mode 100644 index 000000000..95ff1938b --- /dev/null +++ b/src/main/resources/db/migration/V161__delete_duplicate_ankeitr_more.sql @@ -0,0 +1,281 @@ +DELETE +FROM klage.behandling_registreringshjemmel +WHERE behandling_id IN ( + '905e504e-9a11-4edd-a0ff-1cf2dd07e909', + '438d81bd-210c-4fd2-a9a7-d9c25010a07e', + 'ae173112-8f02-4ec4-9fb0-ce41b575f9a0', + 'd1d26bfc-8fc4-45cf-b671-bac28035427d', + '46b4f9fc-c363-44f1-bf2e-301b7dac3dd6', + 'd2d8c454-14f9-41f7-8e8f-a6d876499ef7', + '4ef7171b-2593-4d07-9f1d-fc319de9d31d', + 'b6e6b298-cfe1-484b-a550-3e0868cf9d74', + '4b70f8da-0c6b-48f4-8f1a-091074279486', + '371b35cd-a1b2-448f-b1e9-b374044b834e', + '53c0dd49-0e3d-4a04-9a1f-2950cbf6da26', + 'c2c938a7-1b26-422a-9a78-fa9c67ea5891', + '79747060-b44b-4b00-aa5b-5f94da0ad5d9', + '31e1eb8c-fad9-4a44-b642-4396f1ac8016', + '1eac3380-db05-4a7b-88d6-9f4fd6b6467c', + '59c6140a-a897-486f-860b-2105bb79e0f2', + '5cf2f137-af3b-40b3-b078-361840bd8376', + 'c261e371-3aae-4a95-b5aa-25d471761775', + '764418d9-7d58-4ec5-8146-190a93be2866', + '5750afaf-979e-4df3-91c8-647b9cc9dbfd', + '95ef0950-39b5-4123-a554-f4883392c3f3', + 'cf9b3786-71b1-4c49-86dc-31065d7de915', + '48bdac56-af29-4bdb-96a6-ba723294e61d', + '3264ec80-f3ed-47db-abfe-f07767e75764', + 'eaf3e870-0032-4375-b0bd-2826b8fbc47b', + '593aeeda-ef7f-4930-9a11-e3644d7b8ec5', + 'dd43889f-617b-44be-a781-f2451a5fbcff', + 'a1442694-d99f-43e9-a9e2-fbc0f538e6c7', + '4b2b3d2a-18cc-4230-b217-7422ffa462bd', + '005335cc-4c18-434e-a8cf-d638c32ab1b2', + '5707e18e-db54-4d15-b332-4f95cc6e9a0d', + 'a83f8ac3-5392-4e5b-ae4c-30fbe9df8728', + 'd6d0420f-3d08-4cab-a34d-d1bea4e6fecc', + '7a05239d-d1f6-4653-9228-566832a96df6', + 'b8525713-b28e-4acf-99bc-7e695e5ac76c', + '20c7a2ca-9c59-44aa-91f5-0d3972f75c90', + '88985448-dadf-4dc5-9f24-660fdc6bf89c', + '686777e5-68e1-474d-acee-b4644ca65664', + 'fda2d02a-f798-47b1-8cce-d9f5a19c58ac', + '717e72ad-fcf2-48ca-b147-3b93cec72420', + '82179962-7b17-4466-aa03-951eb5b57944', + '1714a01a-35cc-4ca2-b06d-6e5e33a01bee' + ); + +DELETE +FROM klage.behandling_hjemmel +WHERE behandling_id IN ( + '905e504e-9a11-4edd-a0ff-1cf2dd07e909', + '438d81bd-210c-4fd2-a9a7-d9c25010a07e', + 'ae173112-8f02-4ec4-9fb0-ce41b575f9a0', + 'd1d26bfc-8fc4-45cf-b671-bac28035427d', + '46b4f9fc-c363-44f1-bf2e-301b7dac3dd6', + 'd2d8c454-14f9-41f7-8e8f-a6d876499ef7', + '4ef7171b-2593-4d07-9f1d-fc319de9d31d', + 'b6e6b298-cfe1-484b-a550-3e0868cf9d74', + '4b70f8da-0c6b-48f4-8f1a-091074279486', + '371b35cd-a1b2-448f-b1e9-b374044b834e', + '53c0dd49-0e3d-4a04-9a1f-2950cbf6da26', + 'c2c938a7-1b26-422a-9a78-fa9c67ea5891', + '79747060-b44b-4b00-aa5b-5f94da0ad5d9', + '31e1eb8c-fad9-4a44-b642-4396f1ac8016', + '1eac3380-db05-4a7b-88d6-9f4fd6b6467c', + '59c6140a-a897-486f-860b-2105bb79e0f2', + '5cf2f137-af3b-40b3-b078-361840bd8376', + 'c261e371-3aae-4a95-b5aa-25d471761775', + '764418d9-7d58-4ec5-8146-190a93be2866', + '5750afaf-979e-4df3-91c8-647b9cc9dbfd', + '95ef0950-39b5-4123-a554-f4883392c3f3', + 'cf9b3786-71b1-4c49-86dc-31065d7de915', + '48bdac56-af29-4bdb-96a6-ba723294e61d', + '3264ec80-f3ed-47db-abfe-f07767e75764', + 'eaf3e870-0032-4375-b0bd-2826b8fbc47b', + '593aeeda-ef7f-4930-9a11-e3644d7b8ec5', + 'dd43889f-617b-44be-a781-f2451a5fbcff', + 'a1442694-d99f-43e9-a9e2-fbc0f538e6c7', + '4b2b3d2a-18cc-4230-b217-7422ffa462bd', + '005335cc-4c18-434e-a8cf-d638c32ab1b2', + '5707e18e-db54-4d15-b332-4f95cc6e9a0d', + 'a83f8ac3-5392-4e5b-ae4c-30fbe9df8728', + 'd6d0420f-3d08-4cab-a34d-d1bea4e6fecc', + '7a05239d-d1f6-4653-9228-566832a96df6', + 'b8525713-b28e-4acf-99bc-7e695e5ac76c', + '20c7a2ca-9c59-44aa-91f5-0d3972f75c90', + '88985448-dadf-4dc5-9f24-660fdc6bf89c', + '686777e5-68e1-474d-acee-b4644ca65664', + 'fda2d02a-f798-47b1-8cce-d9f5a19c58ac', + '717e72ad-fcf2-48ca-b147-3b93cec72420', + '82179962-7b17-4466-aa03-951eb5b57944', + '1714a01a-35cc-4ca2-b06d-6e5e33a01bee' + ); + +DELETE +FROM klage.endringslogginnslag +WHERE behandling_id IN ( + '905e504e-9a11-4edd-a0ff-1cf2dd07e909', + '438d81bd-210c-4fd2-a9a7-d9c25010a07e', + 'ae173112-8f02-4ec4-9fb0-ce41b575f9a0', + 'd1d26bfc-8fc4-45cf-b671-bac28035427d', + '46b4f9fc-c363-44f1-bf2e-301b7dac3dd6', + 'd2d8c454-14f9-41f7-8e8f-a6d876499ef7', + '4ef7171b-2593-4d07-9f1d-fc319de9d31d', + 'b6e6b298-cfe1-484b-a550-3e0868cf9d74', + '4b70f8da-0c6b-48f4-8f1a-091074279486', + '371b35cd-a1b2-448f-b1e9-b374044b834e', + '53c0dd49-0e3d-4a04-9a1f-2950cbf6da26', + 'c2c938a7-1b26-422a-9a78-fa9c67ea5891', + '79747060-b44b-4b00-aa5b-5f94da0ad5d9', + '31e1eb8c-fad9-4a44-b642-4396f1ac8016', + '1eac3380-db05-4a7b-88d6-9f4fd6b6467c', + '59c6140a-a897-486f-860b-2105bb79e0f2', + '5cf2f137-af3b-40b3-b078-361840bd8376', + 'c261e371-3aae-4a95-b5aa-25d471761775', + '764418d9-7d58-4ec5-8146-190a93be2866', + '5750afaf-979e-4df3-91c8-647b9cc9dbfd', + '95ef0950-39b5-4123-a554-f4883392c3f3', + 'cf9b3786-71b1-4c49-86dc-31065d7de915', + '48bdac56-af29-4bdb-96a6-ba723294e61d', + '3264ec80-f3ed-47db-abfe-f07767e75764', + 'eaf3e870-0032-4375-b0bd-2826b8fbc47b', + '593aeeda-ef7f-4930-9a11-e3644d7b8ec5', + 'dd43889f-617b-44be-a781-f2451a5fbcff', + 'a1442694-d99f-43e9-a9e2-fbc0f538e6c7', + '4b2b3d2a-18cc-4230-b217-7422ffa462bd', + '005335cc-4c18-434e-a8cf-d638c32ab1b2', + '5707e18e-db54-4d15-b332-4f95cc6e9a0d', + 'a83f8ac3-5392-4e5b-ae4c-30fbe9df8728', + 'd6d0420f-3d08-4cab-a34d-d1bea4e6fecc', + '7a05239d-d1f6-4653-9228-566832a96df6', + 'b8525713-b28e-4acf-99bc-7e695e5ac76c', + '20c7a2ca-9c59-44aa-91f5-0d3972f75c90', + '88985448-dadf-4dc5-9f24-660fdc6bf89c', + '686777e5-68e1-474d-acee-b4644ca65664', + 'fda2d02a-f798-47b1-8cce-d9f5a19c58ac', + '717e72ad-fcf2-48ca-b147-3b93cec72420', + '82179962-7b17-4466-aa03-951eb5b57944', + '1714a01a-35cc-4ca2-b06d-6e5e33a01bee' + ); + +DELETE +FROM klage.saksdokument +WHERE behandling_id IN ( + '905e504e-9a11-4edd-a0ff-1cf2dd07e909', + '438d81bd-210c-4fd2-a9a7-d9c25010a07e', + 'ae173112-8f02-4ec4-9fb0-ce41b575f9a0', + 'd1d26bfc-8fc4-45cf-b671-bac28035427d', + '46b4f9fc-c363-44f1-bf2e-301b7dac3dd6', + 'd2d8c454-14f9-41f7-8e8f-a6d876499ef7', + '4ef7171b-2593-4d07-9f1d-fc319de9d31d', + 'b6e6b298-cfe1-484b-a550-3e0868cf9d74', + '4b70f8da-0c6b-48f4-8f1a-091074279486', + '371b35cd-a1b2-448f-b1e9-b374044b834e', + '53c0dd49-0e3d-4a04-9a1f-2950cbf6da26', + 'c2c938a7-1b26-422a-9a78-fa9c67ea5891', + '79747060-b44b-4b00-aa5b-5f94da0ad5d9', + '31e1eb8c-fad9-4a44-b642-4396f1ac8016', + '1eac3380-db05-4a7b-88d6-9f4fd6b6467c', + '59c6140a-a897-486f-860b-2105bb79e0f2', + '5cf2f137-af3b-40b3-b078-361840bd8376', + 'c261e371-3aae-4a95-b5aa-25d471761775', + '764418d9-7d58-4ec5-8146-190a93be2866', + '5750afaf-979e-4df3-91c8-647b9cc9dbfd', + '95ef0950-39b5-4123-a554-f4883392c3f3', + 'cf9b3786-71b1-4c49-86dc-31065d7de915', + '48bdac56-af29-4bdb-96a6-ba723294e61d', + '3264ec80-f3ed-47db-abfe-f07767e75764', + 'eaf3e870-0032-4375-b0bd-2826b8fbc47b', + '593aeeda-ef7f-4930-9a11-e3644d7b8ec5', + 'dd43889f-617b-44be-a781-f2451a5fbcff', + 'a1442694-d99f-43e9-a9e2-fbc0f538e6c7', + '4b2b3d2a-18cc-4230-b217-7422ffa462bd', + '005335cc-4c18-434e-a8cf-d638c32ab1b2', + '5707e18e-db54-4d15-b332-4f95cc6e9a0d', + 'a83f8ac3-5392-4e5b-ae4c-30fbe9df8728', + 'd6d0420f-3d08-4cab-a34d-d1bea4e6fecc', + '7a05239d-d1f6-4653-9228-566832a96df6', + 'b8525713-b28e-4acf-99bc-7e695e5ac76c', + '20c7a2ca-9c59-44aa-91f5-0d3972f75c90', + '88985448-dadf-4dc5-9f24-660fdc6bf89c', + '686777e5-68e1-474d-acee-b4644ca65664', + 'fda2d02a-f798-47b1-8cce-d9f5a19c58ac', + '717e72ad-fcf2-48ca-b147-3b93cec72420', + '82179962-7b17-4466-aa03-951eb5b57944', + '1714a01a-35cc-4ca2-b06d-6e5e33a01bee' + ); + +DELETE +FROM klage.kafka_event +WHERE behandling_id IN ( + '905e504e-9a11-4edd-a0ff-1cf2dd07e909', + '438d81bd-210c-4fd2-a9a7-d9c25010a07e', + 'ae173112-8f02-4ec4-9fb0-ce41b575f9a0', + 'd1d26bfc-8fc4-45cf-b671-bac28035427d', + '46b4f9fc-c363-44f1-bf2e-301b7dac3dd6', + 'd2d8c454-14f9-41f7-8e8f-a6d876499ef7', + '4ef7171b-2593-4d07-9f1d-fc319de9d31d', + 'b6e6b298-cfe1-484b-a550-3e0868cf9d74', + '4b70f8da-0c6b-48f4-8f1a-091074279486', + '371b35cd-a1b2-448f-b1e9-b374044b834e', + '53c0dd49-0e3d-4a04-9a1f-2950cbf6da26', + 'c2c938a7-1b26-422a-9a78-fa9c67ea5891', + '79747060-b44b-4b00-aa5b-5f94da0ad5d9', + '31e1eb8c-fad9-4a44-b642-4396f1ac8016', + '1eac3380-db05-4a7b-88d6-9f4fd6b6467c', + '59c6140a-a897-486f-860b-2105bb79e0f2', + '5cf2f137-af3b-40b3-b078-361840bd8376', + 'c261e371-3aae-4a95-b5aa-25d471761775', + '764418d9-7d58-4ec5-8146-190a93be2866', + '5750afaf-979e-4df3-91c8-647b9cc9dbfd', + '95ef0950-39b5-4123-a554-f4883392c3f3', + 'cf9b3786-71b1-4c49-86dc-31065d7de915', + '48bdac56-af29-4bdb-96a6-ba723294e61d', + '3264ec80-f3ed-47db-abfe-f07767e75764', + 'eaf3e870-0032-4375-b0bd-2826b8fbc47b', + '593aeeda-ef7f-4930-9a11-e3644d7b8ec5', + 'dd43889f-617b-44be-a781-f2451a5fbcff', + 'a1442694-d99f-43e9-a9e2-fbc0f538e6c7', + '4b2b3d2a-18cc-4230-b217-7422ffa462bd', + '005335cc-4c18-434e-a8cf-d638c32ab1b2', + '5707e18e-db54-4d15-b332-4f95cc6e9a0d', + 'a83f8ac3-5392-4e5b-ae4c-30fbe9df8728', + 'd6d0420f-3d08-4cab-a34d-d1bea4e6fecc', + '7a05239d-d1f6-4653-9228-566832a96df6', + 'b8525713-b28e-4acf-99bc-7e695e5ac76c', + '20c7a2ca-9c59-44aa-91f5-0d3972f75c90', + '88985448-dadf-4dc5-9f24-660fdc6bf89c', + '686777e5-68e1-474d-acee-b4644ca65664', + 'fda2d02a-f798-47b1-8cce-d9f5a19c58ac', + '717e72ad-fcf2-48ca-b147-3b93cec72420', + '82179962-7b17-4466-aa03-951eb5b57944', + '1714a01a-35cc-4ca2-b06d-6e5e33a01bee' + ); + +DELETE +FROM klage.behandling +WHERE id IN ( + '905e504e-9a11-4edd-a0ff-1cf2dd07e909', + '438d81bd-210c-4fd2-a9a7-d9c25010a07e', + 'ae173112-8f02-4ec4-9fb0-ce41b575f9a0', + 'd1d26bfc-8fc4-45cf-b671-bac28035427d', + '46b4f9fc-c363-44f1-bf2e-301b7dac3dd6', + 'd2d8c454-14f9-41f7-8e8f-a6d876499ef7', + '4ef7171b-2593-4d07-9f1d-fc319de9d31d', + 'b6e6b298-cfe1-484b-a550-3e0868cf9d74', + '4b70f8da-0c6b-48f4-8f1a-091074279486', + '371b35cd-a1b2-448f-b1e9-b374044b834e', + '53c0dd49-0e3d-4a04-9a1f-2950cbf6da26', + 'c2c938a7-1b26-422a-9a78-fa9c67ea5891', + '79747060-b44b-4b00-aa5b-5f94da0ad5d9', + '31e1eb8c-fad9-4a44-b642-4396f1ac8016', + '1eac3380-db05-4a7b-88d6-9f4fd6b6467c', + '59c6140a-a897-486f-860b-2105bb79e0f2', + '5cf2f137-af3b-40b3-b078-361840bd8376', + 'c261e371-3aae-4a95-b5aa-25d471761775', + '764418d9-7d58-4ec5-8146-190a93be2866', + '5750afaf-979e-4df3-91c8-647b9cc9dbfd', + '95ef0950-39b5-4123-a554-f4883392c3f3', + 'cf9b3786-71b1-4c49-86dc-31065d7de915', + '48bdac56-af29-4bdb-96a6-ba723294e61d', + '3264ec80-f3ed-47db-abfe-f07767e75764', + 'eaf3e870-0032-4375-b0bd-2826b8fbc47b', + '593aeeda-ef7f-4930-9a11-e3644d7b8ec5', + 'dd43889f-617b-44be-a781-f2451a5fbcff', + 'a1442694-d99f-43e9-a9e2-fbc0f538e6c7', + '4b2b3d2a-18cc-4230-b217-7422ffa462bd', + '005335cc-4c18-434e-a8cf-d638c32ab1b2', + '5707e18e-db54-4d15-b332-4f95cc6e9a0d', + 'a83f8ac3-5392-4e5b-ae4c-30fbe9df8728', + 'd6d0420f-3d08-4cab-a34d-d1bea4e6fecc', + '7a05239d-d1f6-4653-9228-566832a96df6', + 'b8525713-b28e-4acf-99bc-7e695e5ac76c', + '20c7a2ca-9c59-44aa-91f5-0d3972f75c90', + '88985448-dadf-4dc5-9f24-660fdc6bf89c', + '686777e5-68e1-474d-acee-b4644ca65664', + 'fda2d02a-f798-47b1-8cce-d9f5a19c58ac', + '717e72ad-fcf2-48ca-b147-3b93cec72420', + '82179962-7b17-4466-aa03-951eb5b57944', + '1714a01a-35cc-4ca2-b06d-6e5e33a01bee' + ); \ No newline at end of file