Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
-$VERSION = "3.21.00.039";
+$VERSION = "3.21.00.040";
sub version {
return $VERSION;
+++ /dev/null
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-use C4::Context;
-
-my $dbh = C4::Context->dbh;
-
-my $DBversion = "3.21.00.XXX";
-#if ( CheckVersion($DBversion) ) {
- $dbh->do(q{
- ALTER TABLE itemtypes
- ADD hideinopac TINYINT(1) NOT NULL DEFAULT 0 AFTER sip_media_type,
- ADD searchcategory VARCHAR(80) DEFAULT NULL AFTER hideinopac;
- });
- print "Upgrade to $DBversion done (Bug 10937 - Option to hide and group itemtypes from advanced search)\n";
-# SetVersion($DBversion);
-#}
SetVersion($DBversion);
}
-$DBversion = "3.19.00.XXX";
+$DBversion = "3.21.00.040";
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
ALTER TABLE itemtypes
ADD searchcategory VARCHAR(20) DEFAULT NULL
AFTER hideinopac;
});
- print "Upgrade to $DBversion done (Bug 10937 - Option to hide and group itemtypes from advanced search)\n";
+ print "Upgrade to $DBversion done (Bug 10937: Option to hide and group itemtypes from advanced search)\n";
SetVersion($DBversion);
}