Bug 26684: DBRev 24.12.00.011
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
271ca1f067
commit
f7a43db1a0
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 = "24.12.00.010";
|
||||
$VERSION = "24.12.00.011";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if( column_exists( 'auth_header', 'marc' ) ) {
|
||||
$dbh->do( "ALTER TABLE auth_header DROP COLUMN marc" );
|
||||
}
|
||||
|
||||
NewVersion( $DBversion, 26684, "Drop marc column from auth_header");
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
use Modern::Perl;
|
||||
use Koha::Installer::Output qw(say_warning say_success say_info);
|
||||
|
||||
return {
|
||||
bug_number => "26684",
|
||||
description => "Drop marc column from auth_header",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
if ( column_exists( 'auth_header', 'marc' ) ) {
|
||||
$dbh->do("ALTER TABLE auth_header DROP COLUMN marc");
|
||||
say_success( $out, "Removed column 'auth_header.marc'" );
|
||||
}
|
||||
},
|
||||
};
|
||||
Loading…
Reference in New Issue