EPrints Technical Mailing List Archive
Message: #07556
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Reset an archive before going live
- To: <eprints-tech@ecs.soton.ac.uk>
- Subject: Re: [EP-tech] Reset an archive before going live
- From: Yuri <yurj@alfa.it>
- Date: Mon, 5 Nov 2018 11:35:10 +0100
This works. Adding user to epadmin erase_eprints will delete the "content" of the archive (data and users). Only messages and cachemap/cachetables are left unthouched, quite easy to fix:
delete from cachemap; drop table cache XYZ; UPDATE counters SET counter=0 WHERE countername = "cachemapid"; UPDATE counters SET counter=0 WHERE countername = "messageid"; ) Thanks! Il 05/11/18 09:10, Yuri via Eprints-tech ha scritto:
You could either: - create a copy of the epadmin script, and add the 'user' dataset to the erase_eprints datasets or - manually remove all user* tables from the database, and then run: UPDATE counters SET counter=0 WHERE countername = userid;I think this is the safer way.
- Follow-Ups:
- Re: [EP-tech] Reset an archive before going live
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] Reset an archive before going live
- References:
- [EP-tech] Reset an archive before going live
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] Reset an archive before going live
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] Reset an archive before going live
- From: John Salter <J.Salter@leeds.ac.uk>
- Re: [EP-tech] Reset an archive before going live
- From: Yuri <yurj@alfa.it>
- Re: [EP-tech] Reset an archive before going live
- From: Yuri <yurj@alfa.it>
- [EP-tech] Reset an archive before going live
- Prev by Date: Re: [EP-tech] Reset an archive before going live
- Next by Date: [EP-tech] Installing eprints with postgresql
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):