Koha/installer/data/mysql/db_revs/231200026.pl
Katrin Fischer ae6c181b63
Bug 35616: DBRev 23.12.00.026
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-04-22 08:57:37 +02:00

17 lines
523 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "35616",
description => "Add source column to tickets table",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
unless ( column_exists( 'tickets', 'source' ) ) {
$dbh->do(
"ALTER TABLE `tickets` ADD COLUMN `source` enum('catalog') NOT NULL DEFAULT 'catalog' COMMENT 'source of ticket' AFTER `id`"
);
say $out "Added column 'tickets.source'";
}
},
};