From 28d81cb7bbde241cafb7c1cd05860251840d7e04 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 28 Dec 2016 13:56:07 +0000 Subject: [PATCH] Bug 17767 - DBRev 16.12.00.001 Signed-off-by: Kyle M Hall --- Koha.pm | 2 +- .../atomicupdate/bug_extended_attr_modification.sql | 12 ------------ installer/data/mysql/updatedatabase.pl | 12 ++++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_extended_attr_modification.sql diff --git a/Koha.pm b/Koha.pm index 5c5c593e01..3d03cba5e0 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.000"; +$VERSION = "16.12.00.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_extended_attr_modification.sql b/installer/data/mysql/atomicupdate/bug_extended_attr_modification.sql deleted file mode 100644 index 58c12530e9..0000000000 --- a/installer/data/mysql/atomicupdate/bug_extended_attr_modification.sql +++ /dev/null @@ -1,12 +0,0 @@ -ALTER TABLE borrower_modifications ADD COLUMN extended_attributes text DEFAULT NULL AFTER privacy; - --- $DBversion = "16.12.00.XXX"; --- if ( CheckVersion($DBversion) ) { --- --- $dbh->do( "ALTER TABLE borrower_modifications --- ADD COLUMN extended_attributes text DEFAULT NULL --- AFTER privacy" ); --- print "Upgrade to $DBversion done (Bug 8835). Everything is fine.\n"; --- --- SetVersion($DBversion); --- } diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index fe81533189..4c47510160 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -13706,6 +13706,18 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "16.12.00.001"; +if ( CheckVersion($DBversion) ) { + $dbh->do(q{ + ALTER TABLE borrower_modifications + ADD COLUMN extended_attributes text DEFAULT NULL + AFTER privacy + }); + + print "Upgrade to $DBversion done (Bug 17767 - Let Koha::Patron::Modification handle extended attributes)\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