From 079efd6341579984391f6a6bc7cf467886789da2 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 19 Oct 2018 16:50:40 +0000 Subject: [PATCH] Bug 21617: DBRev 17.11.11.001 Signed-off-by: Nick Clemens (cherry picked from commit 8150058b387b39469b64853a07d512bcc0a3741d) Signed-off-by: Martin Renvoize (cherry picked from commit 5bc9139097327a05f411935cec08ded322a46032) Signed-off-by: Fridolin Somers --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug21617.perl | 7 ------- installer/data/mysql/updatedatabase.pl | 8 ++++++++ 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug21617.perl diff --git a/Koha.pm b/Koha.pm index 8f23dca764..9d6b786376 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 = "17.11.11.000"; +$VERSION = "17.11.11.001"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug21617.perl b/installer/data/mysql/atomicupdate/bug21617.perl deleted file mode 100644 index edbec60b1b..0000000000 --- a/installer/data/mysql/atomicupdate/bug21617.perl +++ /dev/null @@ -1,7 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - $dbh->do( "alter table statistics change column ccode ccode varchar(80) default NULL" ); - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 21617: Make statistics.ccode longer)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 4f6ab83b62..263f3739d3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15221,6 +15221,14 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (17.11.11 release)\n"; } +$DBversion = '17.11.11.001'; +if( CheckVersion( $DBversion ) ) { + $dbh->do( "alter table statistics change column ccode ccode varchar(80) default NULL" ); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21617: Make statistics.ccode longer)\n"; +} + # 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