[ckan-dev] Adding fields to existing tables of CKAN, from extension
Rufus Pollock
rufus.pollock at okfn.org
Fri Jun 8 14:46:32 UTC 2012
On 7 June 2012 13:48, Aleksi Suomalainen <aleksi.suomalainen at nomovok.com> wrote:
> Hello,
>
> I am making an extension that creates a global id from a URN fetched from an
> external service, but the existing CKAN datamodel for eg. Resource does not
> have a global_id field and after a whole evening of googling I did not find
> a way to do this via an plugin interface.
The resource id is a uuid at the moment so it would be automatically
globally unique (the chances of generating the same id in different
instances should be ~ 0).
Rufus
> Is there another way to implement this, without me requiring to fork the
> entire CKAN codebase just to add one field to an existing datamodel?
>
> I know there are migrations that exist, but is there a way for an extension
> to add its own migration and then configure CKAN to use a migration of the
> extension?
>
> Regards,
> --
> -- Aleksi Suomalainen Software Developer at Nomovok Ltd.
> <http://www.nomovok.com/> <mailto:aleksi.suomalainen at nomovok.com=>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
--
Co-Founder, Open Knowledge Foundation
Promoting Open Knowledge in a Digital Age
http://www.okfn.org/ - http://blog.okfn.org/
More information about the ckan-dev
mailing list