From c40e07d6a6ddead18d6851bb1ee211b0897348db Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Mar 2018 17:16:26 -0300 Subject: [PATCH] Bug 4078: DBRev 17.12.00.022 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- installer/data/mysql/atomicupdate/bug_4078.perl | 9 --------- installer/data/mysql/updatedatabase.pl | 13 +++++++++++++ 3 files changed, 14 insertions(+), 10 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_4078.perl diff --git a/Koha.pm b/Koha.pm index 211db4b389..78977c0032 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.12.00.021"; +$VERSION = "17.12.00.022"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_4078.perl b/installer/data/mysql/atomicupdate/bug_4078.perl deleted file mode 100644 index 0aa414f3cf..0000000000 --- a/installer/data/mysql/atomicupdate/bug_4078.perl +++ /dev/null @@ -1,9 +0,0 @@ -$DBversion = 'XXX'; # will be replaced by the RM -if( CheckVersion( $DBversion ) ) { - if( !column_exists( 'currency', 'p_sep_by_space' ) ) { - $dbh->do( "ALTER TABLE currency ADD COLUMN p_sep_by_space tinyint(1) default 0 after archived" ); - } - - SetVersion( $DBversion ); - print "Upgrade to $DBversion done (Bug 4078: Add column currency.p_sep_by_space)\n"; -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index e8121d09b7..89916091fa 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -15613,6 +15613,19 @@ if( CheckVersion( $DBversion ) ) { print "Upgrade to $DBversion done (Bug 13287 - Add system preference PurgeSuggestionsOlderThan)\n"; } +$DBversion = '17.12.00.022'; +if( CheckVersion( $DBversion ) ) { + + if( !column_exists( 'currency', 'p_sep_by_space' ) ) { + $dbh->do(q| + ALTER TABLE currency ADD COLUMN p_sep_by_space tinyint(1) default 0 after archived + |); + } + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 4078 - Add column currency.p_sep_by_space)\n"; +} + # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it.