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

(-)a/installer/data/mysql/atomicupdate/bug_35145_order_patron_attributes.pl (-13 / +9 lines)
Lines 7-23 return { Link Here
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
9
10
        # Do you stuffs here
10
        # Do your stuff here
11
        $dbh->do(
11
        unless ( column_exists('borrower_attribute_types', 'display_order') ) {
12
            q{
12
            $dbh->do(q{
13
            ALTER TABLE borrower_attribute_types
13
                ALTER TABLE borrower_attribute_types
14
            ADD COLUMN IF NOT EXISTS display_order INT(11) DEFAULT NULL COMMENT
14
                ADD COLUMN display_order INT(11) DEFAULT NULL COMMENT
15
                'the order in which this attribute type appears in patron form' AFTER `mandatory`
15
                    'the order in which this attribute type appears in patron form' AFTER `mandatory`
16
            });
17
            say_success( $out, "Added column 'borrower_attribute_types.display_order'" );
16
        }
18
        }
17
        );
18
19
        # Print useful stuff here
20
        # tables
21
        say_success( $out, "Added column 'borrower_attribute_types.display_order'" );
22
    },
19
    },
23
};
20
};  
24
- 

Return to bug 35145