From 3db855b872ccbf133e238ddc537b6f0b818c931e Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 24 Mar 2017 18:49:15 +0000 Subject: [PATCH] Bug 13757 - DBRev 16.12.00.016 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- ..._opac_editable_to_borrower_attribute_types.perl | 13 ------------- installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 14 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_13757-add_opac_editable_to_borrower_attribute_types.perl diff --git a/Koha.pm b/Koha.pm index 10f3958e19..1cbabf6333 100644 --- a/Koha.pm +++ b/Koha.pm @@ -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; diff --git a/installer/data/mysql/atomicupdate/bug_13757-add_opac_editable_to_borrower_attribute_types.perl b/installer/data/mysql/atomicupdate/bug_13757-add_opac_editable_to_borrower_attribute_types.perl deleted file mode 100644 index 1477763409..0000000000 --- a/installer/data/mysql/atomicupdate/bug_13757-add_opac_editable_to_borrower_attribute_types.perl +++ /dev/null @@ -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); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 8da386dab8..ffc1c07a3a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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. -- 2.39.5