ckan - How to restore a previously deleted group -


i created group, deleted it, , when want create again following error:

the form contains invalid entries: name: group name exists in database 

digging around realized can rase outside ckan. pgadmin3 console have delete related records in member_revision, member, group_role , group table

but doing break history in audit tables, , god knows else.

is there politer way achieve it?

the quickest (and dirtiest) way this, assuming group name my-group:

update group_revision set state='active' name='my-group' , current=true; update group set state='active' name='my-group'; 

this should keep audit intact.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -