From 68bf4893c42ea65d816e6daec2739cb88b6e3592 Mon Sep 17 00:00:00 2001 From: Bruce Bolt Date: Mon, 3 Dec 2018 14:13:04 +0000 Subject: [PATCH] Add an 'owner_org' to the v3 package migration The auto-migration fails because the new package does not have an owner organisation ID assigned, so fails validation --- ckanext/harvest/model/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ckanext/harvest/model/__init__.py b/ckanext/harvest/model/__init__.py index e5b41fd..c55feae 100644 --- a/ckanext/harvest/model/__init__.py +++ b/ckanext/harvest/model/__init__.py @@ -574,6 +574,7 @@ def migrate_v3_create_datasets(source_ids=None): 'source_type': source.type, 'config': source.config, 'frequency': source.frequency, + 'owner_org': source.publisher_id, } context['message'] = 'Created package for harvest source {0}'.format(source.id) try: