Bug 30407: DBRev 22.06.00.074
[koha.git] / installer / data / mysql / db_revs / 220600039.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "31374",
5     description => "Add a non-public note column to the suggestions table",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         if( !column_exists( 'suggestions', 'staff_note' ) ) {
10             $dbh->do(q{
11                     ALTER TABLE suggestions
12                     ADD COLUMN staff_note longtext NULL DEFAULT NULL
13                     COMMENT "suggestions table non-public note"
14                     AFTER note
15             });
16         }
17         # Print useful stuff here
18         say $out "Add staff_note column to suggestions table";
19     },
20 };