[index] [prev] [next] [options] [help]
See the Contact page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

[EP-tech] Re: Modify type of meta field in live archive

From: Alfons Wittmann <alfons.wittmann AT ku-eichstaett.de>
Date: Thu, 25 Jun 2009 19:20:31 +0200


Threading: [EP-tech] Modify type of meta field in live archive from alfons.wittmann AT ku-eichstaett.de
      • This Message

http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** EPrints community wiki - http://wiki.eprints.org/
Tim Brody schrieb am 25.06.2009 18:07:
>> >> I have to modify the type of an existing meta field in a live 
archive:
>> >> I want to have the field "pages" with type 
"text" instead of "int".
>> >>
>> >> What I've done so far (on a test server):
>> >> - ALTER TABLE `archiveid`.`eprint` MODIFY COLUMN `pages` TEXT 
...
>> >> - UPDATE archiveid.mf SET type = "text" WHERE 
metafieldid = "eprint.pages"
>> >> - modify "/archiveid/cfg/cfg.d/eprint-fields.pl"
>> >>             'name' => 'pages',
>> >>             'type' => 'text',
>> >> - run "epadmin reorder archiveid metafield"
>> >> - restart Apache
>
> I just tried what you did on a trunk version and it works ok.

I tried it again, and there were no more errors - don't know why,
perhaps I forgot to save eprint-fields.pl before restarting Apache.

Thanks again,
Alfons


--
Universitätsbibliothek Eichstätt-Ingolstadt
EDV-Referat                    Tel: 08421/93-1486 - Fax: 08421/93-1791
Universitätsallee 1            EMail: alfons.wittmann AT ku-eichstaett.de
85071 Eichstätt                http://www.ku-eichstaett.de/Bibliothek/



[index] [prev] [next] [options] [help]