Share » Forums » Developer » upgrade to 3.8.x (drafts)

upgrade to 3.8.x (drafts)

upgrade to 3.8.x (drafts)

Friday 04 August 2006 5:59:04 am - 4 replies

Author Message

luis muñoz

Friday 04 August 2006 6:47:43 am

Hi Andrew,

If you want to delete all the drafts in your system you can modify de script update/common/scripts/updatemultilingual.php in 3.8.x distribution. The first thing the script does is delete all the drafts, take that part into a new file. It will delete all the drafts in your system.
The script makes a list of the current drafts so there should not be people publishing when the script is counting drafts.
It will be also a good idea to add a few sleep seconds between each iteration, if not the system will be really heavy loaded.
Remember doing a database backup before.

Good luck.

Luis

Helle Andersen

Friday 04 August 2006 7:49:10 am

But this is not quite the point - being able to delete ALL drafts.
The question is to get access as an administrator to e.g. drafts made by persons long gone. Sometimes these drafts can just be deleted sometimes they should actually be used. But I do not want to delete ALL drafts.
I have a similar problem with trash. It often happens that one user by mistake deletes an object made by someone else who is no longer employed. As an administrator I should be able to pull that object from trash, but this is not possible.
Helle

Kristof Coomans

Friday 04 August 2006 9:20:29 am

Hello guys

I once made a script to delete drafts, you can find it at http://pubsvn.ez.no/community/trunk/hacks/untoucheddrafts/bin/php/remove_drafts.php . It has a preview mode (dry run) in which you can see a list of users and the count of their drafts (by default sorted on draft count).

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

kracker (the)

The Doctor

Sunday 07 January 2007 11:09:03 am

I think this thread is important to remember.

With so many upgrading to through from 3.7 =< 3.8 to 3.9, this is a useful tool.

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu