From 821176b5b23c2e7a2130f9336ff514b082a169a0 Mon Sep 17 00:00:00 2001 From: kentsanggds Date: Mon, 15 Jul 2024 16:22:37 +0100 Subject: [PATCH] Add the migration script for audit purposes, script will be manually run --- migrations/008_remove_harvest_coupled_resource.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/008_remove_harvest_coupled_resource.sql diff --git a/migrations/008_remove_harvest_coupled_resource.sql b/migrations/008_remove_harvest_coupled_resource.sql new file mode 100644 index 00000000..ea4002af --- /dev/null +++ b/migrations/008_remove_harvest_coupled_resource.sql @@ -0,0 +1,10 @@ +-- drop the harvest_coupled_resource table as it is preventing deletion of datasets +-- when clearing a harvest source. +-- The harvest_coupled_resource table is not referenced anywhere in the ckanext-harvest or ckan repo +-- so it will be removed in order to stop the blocking of clearing harvest sources. + +BEGIN TRANSACTION; + +DROP table harvest_coupled_resource; + +COMMIT;