Koha/installer/data/mysql/db_revs/220600039.pl
Tomas Cohen Arazi c47194153b
Bug 31374: DBRev 22.06.00.039
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-09-07 13:36:52 -07:00

20 lines
646 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "31374",
description => "Add a non-public note column to the suggestions table",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if( !column_exists( 'suggestions', 'staff_note' ) ) {
$dbh->do(q{
ALTER TABLE suggestions
ADD COLUMN staff_note longtext NULL DEFAULT NULL
COMMENT "suggestions table non-public note"
AFTER note
});
}
# Print useful stuff here
say $out "Add staff_note column to suggestions table";
},
};