Bug 8976: DBRev 20.12.00.016

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-03-01 14:10:40 +00:00
parent 70b5f6bedd
commit 24df853064
3 changed files with 21 additions and 21 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.12.00.015";
$VERSION = "20.12.00.016";
sub version {
return $VERSION;

View File

@ -1,20 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
unless ( column_exists( 'marc_subfield_structure', 'display_order' ) ) {
$dbh->do(q{
ALTER TABLE marc_subfield_structure
ADD COLUMN display_order INT(2) NOT NULL DEFAULT 0 AFTER maxlength
});
}
unless ( column_exists( 'auth_subfield_structure', 'display_order' ) ) {
$dbh->do(q{
ALTER TABLE auth_subfield_structure
ADD COLUMN display_order INT(2) NOT NULL DEFAULT 0 AFTER defaultvalue
});
}
# Always end with this (adjust the bug info)
NewVersion( $DBversion, 8976, "Allow setting a default sequence of subfields in cataloguing editor" );
}

View File

@ -23538,6 +23538,26 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 27316, "In Elastisearch mappings convert NULL (Undef) for sort to 1 (Yes)");
}
$DBversion = '20.12.00.016';
if( CheckVersion( $DBversion ) ) {
unless ( column_exists( 'marc_subfield_structure', 'display_order' ) ) {
$dbh->do(q{
ALTER TABLE marc_subfield_structure
ADD COLUMN display_order INT(2) NOT NULL DEFAULT 0 AFTER maxlength
});
}
unless ( column_exists( 'auth_subfield_structure', 'display_order' ) ) {
$dbh->do(q{
ALTER TABLE auth_subfield_structure
ADD COLUMN display_order INT(2) NOT NULL DEFAULT 0 AFTER defaultvalue
});
}
NewVersion( $DBversion, 8976, "Allow setting a default sequence of subfields in cataloguing editor" );
}
# 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/';