Browse Source

Bug 4078: DBRev 17.12.00.022

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
18.05.x
Jonathan Druart 4 years ago
parent
commit
c40e07d6a6
  1. 2
      Koha.pm
  2. 9
      installer/data/mysql/atomicupdate/bug_4078.perl
  3. 13
      installer/data/mysql/updatedatabase.pl

2
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;

9
installer/data/mysql/atomicupdate/bug_4078.perl

@ -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";
}

13
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.

Loading…
Cancel
Save