Bug 8976: DBRev 20.12.00.016
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
70b5f6bedd
commit
24df853064
2
Koha.pm
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 = "20.12.00.015";
|
||||
$VERSION = "20.12.00.016";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -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" );
|
||||
}
|
||||
|
|
@ -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/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue