View | Details | Raw Unified | Return to bug 23005
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_38209-add-a-vendor-language-field.pl (+24 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "38209",
6
    description => "Add a language to the vendor table",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        unless ( column_exists( 'aqbooksellers', 'language' ) ) {
12
            $dbh->do(
13
                q{
14
                    ALTER TABLE aqbooksellers
15
                        ADD COLUMN `language` varchar(255) NULL DEFAULT NULL
16
                        COMMENT 'the language for the vendor'
17
                        AFTER payment_method
18
            }
19
            );
20
21
            say $out "Added new column 'aqbooksellers.language'";
22
        }
23
    },
24
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 503-508 CREATE TABLE `aqbooksellers` ( Link Here
503
  `deliverytime` int(11) DEFAULT NULL COMMENT 'vendor delivery time',
503
  `deliverytime` int(11) DEFAULT NULL COMMENT 'vendor delivery time',
504
  `external_id` varchar(255) DEFAULT NULL COMMENT 'external id of the vendor',
504
  `external_id` varchar(255) DEFAULT NULL COMMENT 'external id of the vendor',
505
  `payment_method` varchar(255) DEFAULT NULL COMMENT 'the payment method for the vendor',
505
  `payment_method` varchar(255) DEFAULT NULL COMMENT 'the payment method for the vendor',
506
  `language` varchar(255) DEFAULT NULL COMMENT 'the language for the vendor',
506
  PRIMARY KEY (`id`),
507
  PRIMARY KEY (`id`),
507
  KEY `listprice` (`listprice`),
508
  KEY `listprice` (`listprice`),
508
  KEY `invoiceprice` (`invoiceprice`),
509
  KEY `invoiceprice` (`invoiceprice`),
509
- 

Return to bug 23005