MT 2146 :Adding index on issn

updateversion incremented
This commit is contained in:
Henri-Damien LAURENT 2009-10-29 16:41:50 +01:00
parent da49fc77df
commit cdcab6ba28
2 changed files with 12 additions and 2 deletions

View file

@ -3105,7 +3105,7 @@ $dbh->do("
$DBversion = "3.01.00.120";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
if (C4::Context->preference("opaclanguages") eq "fr") {
if (C4::Context->preference("opaclanguages") =~ /fr/) {
$dbh->do(qq{
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('RoutingListAddReserves','1','Si activé, des reservations sont automatiquement créées pour chaque lecteur de la liste de circulation d''un numéro de périodique','','YesNo');
});
@ -3118,6 +3118,16 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES
SetVersion ($DBversion);
}
$DBversion = "3.01.00.121";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
$dbh->do(qq{
ALTER TABLE biblioitems ADD INDEX issn_idx (issn);
});
print "Upgrade to $DBversion done (isbd updated)\n";
SetVersion ($DBversion);
}
=item DropAllForeignKeys($table)
Drop all foreign keys of the table $table

View file

@ -10,7 +10,7 @@
use strict;
sub kohaversion {
our $VERSION = '3.01.00.120';
our $VERSION = '3.01.00.121';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install