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

(-)a/api/v1/swagger/definitions/erm_usage_data_provider.yaml (+9 lines)
Lines 68-73 properties: Link Here
68
    type: 
68
    type: 
69
    - string
69
    - string
70
    - "null"
70
    - "null"
71
  dateformat:
72
    description: date format of the harvester
73
    type:
74
    - string
75
    - "null"
76
    enum:
77
      - yyyy-mm
78
      - yyyy-mm-dd
79
      - null
71
  report_types:
80
  report_types:
72
    description: report types of the harvester
81
    description: report types of the harvester
73
    type: 
82
    type: 
(-)a/installer/data/mysql/atomicupdate/bug_41182.pl (+22 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "41182",
6
    description => "Add dateformat to ERM data providers",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        unless ( column_exists( 'erm_usage_data_providers', 'dateformat' ) ) {
12
            $dbh->do(
13
                q{
14
        ALTER TABLE erm_usage_data_providers
15
        ADD COLUMN `dateformat` enum('yyyy-mm','yyyy-mm-dd') COLLATE utf8mb4_unicode_ci DEFAULT 'yyyy-mm' COMMENT 'dateformat' AFTER `requestor_email`
16
        }
17
            );
18
            say $out "Added column 'erm_usage_data_providers.dateformat'";
19
20
        }
21
    },
22
};
(-)a/installer/data/mysql/kohastructure.sql (-1 / +1 lines)
Lines 3275-3280 CREATE TABLE `erm_usage_data_providers` ( Link Here
3275
  `api_key` text DEFAULT NULL COMMENT 'SUSHI API key',
3275
  `api_key` text DEFAULT NULL COMMENT 'SUSHI API key',
3276
  `requestor_name` varchar(80) DEFAULT NULL COMMENT 'requestor name',
3276
  `requestor_name` varchar(80) DEFAULT NULL COMMENT 'requestor name',
3277
  `requestor_email` varchar(80) DEFAULT NULL COMMENT 'requestor email',
3277
  `requestor_email` varchar(80) DEFAULT NULL COMMENT 'requestor email',
3278
  `dateformat` enum('yyyy-mm','yyyy-mm-dd') DEFAULT 'yyyy-mm' COMMENT 'dateformat',
3278
  `report_types` varchar(255) DEFAULT NULL COMMENT 'report types provided by the harvester',
3279
  `report_types` varchar(255) DEFAULT NULL COMMENT 'report types provided by the harvester',
3279
  `service_platform` varchar(80) DEFAULT NULL COMMENT 'platform if provider requires it',
3280
  `service_platform` varchar(80) DEFAULT NULL COMMENT 'platform if provider requires it',
3280
  PRIMARY KEY (`erm_usage_data_provider_id`)
3281
  PRIMARY KEY (`erm_usage_data_provider_id`)
3281
- 

Return to bug 41182