Bug 26403: Move credit and debit types into translatable YAML files
[koha.git] / installer / data / mysql / db_revs / 220600051.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "7021",
5     description => "Add patron category to the statistics table",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9
10         if( !column_exists( 'statistics', 'categorycode' ) ) {
11             $dbh->do(q{
12                 ALTER TABLE statistics
13                     ADD COLUMN categorycode varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'foreign key from the borrowers table, links transaction to a specific borrower category'
14             });
15             say $out "Added column 'statistics.categorycode'";
16         }
17     },
18 };