Bug 19482: DBRev 20.06.00.059

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-11-04 11:53:04 +00:00
parent dcbc856b60
commit 657df01fec
3 changed files with 11 additions and 11 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 = "20.06.00.058";
$VERSION = "20.06.00.059";
sub version {
return $VERSION;

View file

@ -1,10 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'search_field', 'mandatory' ) ) {
$dbh->do( "ALTER TABLE search_field ADD COLUMN mandatory tinyint(1) NULL DEFAULT NULL AFTER opac" );
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19482 - Add mandatory column to search_field for ES mapping)\n";
}

View file

@ -23183,6 +23183,16 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 25333, q{Change message transport type for Talking Tech from "phone" to "itiva"});
}
$DBversion = '20.06.00.059';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'search_field', 'mandatory' ) ) {
$dbh->do( "ALTER TABLE search_field ADD COLUMN mandatory tinyint(1) NULL DEFAULT NULL AFTER opac" );
}
NewVersion( $DBversion, 19482, "Add mandatory column to search_field for ES mapping" );
}
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';