From e94ff7e557e3f35fa02059eb2430c6574804bc58 Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Mon, 26 Mar 2012 14:14:31 +0200 Subject: [PATCH] Bug 7178 follow-up DBRev number --- installer/data/mysql/updatedatabase.pl | 20 ++++++++++---------- kohaversion.pl | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 474866983a..020cd0a7b7 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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) diff --git a/kohaversion.pl b/kohaversion.pl index dbe2f12cbe..e49170eef9 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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 -- 2.39.2