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

(-)a/Koha/Schema/Result/BorrowerAttributeType.pm (-1 / +1 lines)
Lines 187-193 __PACKAGE__->add_columns( Link Here
187
  "mandatory",
187
  "mandatory",
188
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
188
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
189
  "display_order",
189
  "display_order",
190
  { data_type => "int", is_nullable => 1 },
190
  { data_type => "integer", is_nullable => 1 },
191
);
191
);
192
192
193
=head1 PRIMARY KEY
193
=head1 PRIMARY KEY
(-)a/installer/data/mysql/atomicupdate/bug_35145_order_patron_attributes.pl (-3 / +3 lines)
Lines 11-22 return { Link Here
11
        $dbh->do(
11
        $dbh->do(
12
            q{
12
            q{
13
            ALTER TABLE borrower_attribute_types
13
            ALTER TABLE borrower_attribute_types
14
            ADD display_order int(11);
14
            ADD COLUMN IF NOT EXISTS display_order int(11) DEFAULT NULL COMMENT
15
                'the order in which this attribute type appears in patron form'
15
        }
16
        }
16
        );
17
        );
17
18
18
        # Print useful stuff here
19
        # Print useful stuff here
19
        # tables
20
        # tables
20
        say $out "Added column 'borrower_attribute_types.number'";
21
        say $out "Added column 'borrower_attribute_types.display_order'";
21
    },
22
    },
22
};
23
};
23
- 

Return to bug 35145