EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #01528
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Cleaning database up
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Cleaning database up
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- Date: Wed, 06 Feb 2013 15:01:37 +0000
David, On 06/02/13 14:46, David Whitehead wrote:
Hi Seb, The script I was thinking of doing would check whether a user has EPrints and if so would not remove them, along with certain criteria such as if they joined in 2013 don't remove them etc. thanks for the script you mentioned I really appreciated it :), by using the EPrint API would it go and purge the database correctly based on a deletion?
# does user have eprints? add the following to the previous script: return if( $user->get_eprints->count > 0 ); Not sure what field you're using for the join date so I let you do this.And yes, using the API would remove associated saved searches and clean up all the relevant tables (indexes etc).
Seb
- References:
- [EP-tech] Cleaning database up
- From: "David Whitehead" <dwhitehead@lincoln.ac.uk>
- [EP-tech] Re: Cleaning database up
- From: Sebastien Francois <sf2@ecs.soton.ac.uk>
- [EP-tech] Re: Cleaning database up
- From: "David Whitehead" <dwhitehead@lincoln.ac.uk>
- [EP-tech] Cleaning database up
- Prev by Date: [EP-tech] Re: Cleaning database up
- Next by Date: [EP-tech] Re: Cleaning database up
- Previous by thread: [EP-tech] Re: Cleaning database up
- Next by thread: [EP-tech] Re: Cleaning database up
- Index(es):