Bug 7178 follow-up DBRev number

This commit is contained in:
Paul Poulain 2012-03-26 14:14:31 +02:00
parent eefc774e27
commit e94ff7e557
2 changed files with 11 additions and 11 deletions

View File

@ -5035,16 +5035,6 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
print "Upgrade to $DBversion done (New timeout field in z3950servers)\n";
}
$DBversion = "XXX";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do(qq{
INSERT INTO systempreferences(variable,value,explanation,options,type)
VALUES('UniqueItemFields', 'barcode', 'Space-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table', '', 'Free')
});
print "Upgrade to $DBversion done (Added system preference 'UniqueItemFields')\n";
SetVersion($DBversion);
}
$DBversion = "3.07.00.037";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do("
@ -5063,6 +5053,16 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.07.00.038";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do(qq{
INSERT INTO systempreferences(variable,value,explanation,options,type)
VALUES('UniqueItemFields', 'barcode', 'Space-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table', '', 'Free')
});
print "Upgrade to $DBversion done (Added system preference 'UniqueItemFields')\n";
SetVersion($DBversion);
}
=head1 FUNCTIONS
=head2 DropAllForeignKeys($table)

View File

@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
use strict;
sub kohaversion {
our $VERSION = '3.07.00.037';
our $VERSION = '3.07.00.038';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install