Bug 13757 - DBRev 16.12.00.016

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle Hall 2017-03-24 18:49:15 +00:00
parent e06c193187
commit 3db855b872
3 changed files with 15 additions and 14 deletions

View file

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #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 = "16.12.00.015";
$VERSION = "16.12.00.016";
sub version {
return $VERSION;

View file

@ -1,13 +0,0 @@
$DBversion = "16.12.00.XXX";
if ( CheckVersion($DBversion) ) {
unless ( column_exists( 'borrower_attribute_types', 'opac_editable' ) )
{
$dbh->do(q{
ALTER TABLE borrower_attribute_types
ADD COLUMN `opac_editable` tinyint(1) NOT NULL default 0 AFTER `opac_display`
});
}
print "Upgrade to $DBversion done (Bug 13757: Make patron attributes editable in the opac if set to 'editable in OPAC'\n";
SetVersion($DBversion);
}

View file

@ -13991,6 +13991,20 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 18066 - Hea version 2)\n";
}
$DBversion = "16.12.00.016";
if ( CheckVersion($DBversion) ) {
unless ( column_exists( 'borrower_attribute_types', 'opac_editable' ) )
{
$dbh->do(q{
ALTER TABLE borrower_attribute_types
ADD COLUMN `opac_editable` tinyint(1) NOT NULL default 0 AFTER `opac_display`
});
}
print "Upgrade to $DBversion done (Bug 13757: Make patron attributes editable in the opac if set to 'editable in OPAC'\n";
SetVersion($DBversion);
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.