From 1d54edfdaa00e5f32bcf9432d11580f6adcdf511 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 24 May 2013 14:25:05 +0100 Subject: [PATCH] Fix bug in source datasets migration Wrong dataset type was causing the default package schema to be used, thus failing when providing an id. --- ckanext/harvest/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/harvest/model/__init__.py b/ckanext/harvest/model/__init__.py index 6539d64..efd85af 100644 --- a/ckanext/harvest/model/__init__.py +++ b/ckanext/harvest/model/__init__.py @@ -468,7 +468,7 @@ def migrate_v3_create_datasets(): 'title': source.title if source.title else source.url, 'notes': source.description, 'url': source.url, - 'type': 'harvest_source', + 'type': 'harvest', 'source_type': source.type, 'config': source.config, 'frequency': source.frequency,