[ckan-dev] Purge a deleted group CKAN 2.3
Jorge Pantoja
jorgepantojam at gmail.com
Mon Mar 16 20:08:00 UTC 2015
Hi David,
I was wondering whether there is something like "ckan-admin/trash" for
groups, because a ckan user told me that problem.
Thanks for the help,
Jorge
On Mon, Mar 16, 2015 at 2:19 PM, David Miller <david at openhealthcare.org.uk>
wrote:
> Do you consider `$ sudo -u postgres psql` to be the CKAN interface?
>
> update group_revision set state='active' where name='my-group' and current=true;
> update "group" set state='active' where name='my-group';
>
>
> Sure you could write a fairly trivial paster command.
>
> On 16 March 2015 at 19:14, Jorge Pantoja <jorgepantojam at gmail.com> wrote:
>
>> Hello everyone,
>>
>> How I can purge a group that has a "deleted" state on the database?
>>
>> I need this because i'm trying to create a group, using the name of a
>> deleted group by error, but i can't.
>>
>> I solved this through the database (update public.group set
>> name='transporte.old' where name='transporte';).
>>
>>
>> Is there a way to do this through the ckan interface?
>>
>>
>> Thanks for your help,
>>
>> Jorge
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> Love regards etc
>
> David Miller
> CTO Open Healthcare UK
> www.openhealthcare.org.uk
> @thatdavidmiller <http://twitter.com/thatdavidmiller>
> 07854 880 883
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20150316/ef3e16ff/attachment-0003.html>
More information about the ckan-dev
mailing list