Bug 4078: DBRev 17.12.00.022

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-03-19 17:16:26 -03:00
parent f2cf899a90
commit c40e07d6a6
3 changed files with 14 additions and 10 deletions

View File

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

View File

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

View File

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