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

(-)a/installer/data/mysql/atomicupdate/extend_identity_providers.pl (-9 / +6 lines)
Lines 1-4 Link Here
1
use Modern::Perl;
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
2
3
3
return {
4
return {
4
    bug_number  => "35617",
5
    bug_number  => "35617",
Lines 7-23 return { Link Here
7
        my ($args) = @_;
8
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
10
        # Do you stuffs here
11
        $dbh->do(
11
        # now is `matchpoint` enum('email','phone','userid','cardnumber') NOT NULL COMMENT
12
            q{
12
        $dbh->do(q{
13
            ALTER TABLE `identity_providers`
13
            ALTER TABLE `identity_providers`
14
            MODIFY COLUMN `matchpoint` enum('email','phone','userid','cardnumber') NOT NULL COMMENT 'The field of the patron that will be used to match the user from the identity provider';
14
            MODIFY COLUMN `matchpoint` enum('email','phone','userid','cardnumber') NOT NULL COMMENT 'The field of the patron that will be used to match the user from the identity provider';
15
15
16
            });
16
            }
17
17
        );
18
        # Print useful stuff here
18
        say_success( $out, "Add 'phone' to 'matchpoint' field in 'identity_providers'" );
19
        # tables
20
        say $out "Extend 'matchpoint' field in 'identity_providers'";
21
19
22
    },
20
    },
23
};
21
};
24
- 

Return to bug 35617