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

(-)a/Koha/Schema/Result/Category.pm (-24 / +21 lines)
Lines 1-21 Link Here
1
use utf8;
2
package Koha::Schema::Result::Category;
1
package Koha::Schema::Result::Category;
3
2
4
# Created by DBIx::Class::Schema::Loader
3
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
4
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
5
7
=head1 NAME
8
9
Koha::Schema::Result::Category
10
11
=cut
12
13
use strict;
6
use strict;
14
use warnings;
7
use warnings;
15
8
16
use base 'DBIx::Class::Core';
9
use base 'DBIx::Class::Core';
17
10
18
=head1 TABLE: C<categories>
11
12
=head1 NAME
13
14
Koha::Schema::Result::Category
19
15
20
=cut
16
=cut
21
17
Lines 43-49 __PACKAGE__->table("categories"); Link Here
43
=head2 enrolmentperioddate
39
=head2 enrolmentperioddate
44
40
45
  data_type: 'date'
41
  data_type: 'date'
46
  datetime_undef_if_invalid: 1
47
  is_nullable: 1
42
  is_nullable: 1
48
43
49
=head2 upperagelimit
44
=head2 upperagelimit
Lines 108-113 __PACKAGE__->table("categories"); Link Here
108
  default_value: -1
103
  default_value: -1
109
  is_nullable: 0
104
  is_nullable: 0
110
105
106
=head2 default_privacy
107
108
  data_type: 'enum'
109
  default_value: 'default'
110
  extra: {list => ["default","never","forever"]}
111
  is_nullable: 0
112
111
=cut
113
=cut
112
114
113
__PACKAGE__->add_columns(
115
__PACKAGE__->add_columns(
Lines 118-124 __PACKAGE__->add_columns( Link Here
118
  "enrolmentperiod",
120
  "enrolmentperiod",
119
  { data_type => "smallint", is_nullable => 1 },
121
  { data_type => "smallint", is_nullable => 1 },
120
  "enrolmentperioddate",
122
  "enrolmentperioddate",
121
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
123
  { data_type => "date", is_nullable => 1 },
122
  "upperagelimit",
124
  "upperagelimit",
123
  { data_type => "smallint", is_nullable => 1 },
125
  { data_type => "smallint", is_nullable => 1 },
124
  "dateofbirthrequired",
126
  "dateofbirthrequired",
Lines 141-158 __PACKAGE__->add_columns( Link Here
141
  { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
143
  { data_type => "varchar", default_value => "A", is_nullable => 0, size => 1 },
142
  "blockexpiredpatronopacactions",
144
  "blockexpiredpatronopacactions",
143
  { data_type => "tinyint", default_value => -1, is_nullable => 0 },
145
  { data_type => "tinyint", default_value => -1, is_nullable => 0 },
146
  "default_privacy",
147
  {
148
    data_type => "enum",
149
    default_value => "default",
150
    extra => { list => ["default", "never", "forever"] },
151
    is_nullable => 0,
152
  },
144
);
153
);
145
146
=head1 PRIMARY KEY
147
148
=over 4
149
150
=item * L</categorycode>
151
152
=back
153
154
=cut
155
156
__PACKAGE__->set_primary_key("categorycode");
154
__PACKAGE__->set_primary_key("categorycode");
157
155
158
=head1 RELATIONS
156
=head1 RELATIONS
Lines 233-240 __PACKAGE__->might_have( Link Here
233
);
231
);
234
232
235
233
236
# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-05 02:00:18
234
# Created by DBIx::Class::Schema::Loader v0.07000 @ 2014-05-07 12:15:12
237
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:21IkmwMfRevsRHU9ezaIKg
235
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CwCE9qxkWafuO9btYXWZeg
238
236
239
237
240
# You can replace this text with custom content, and it will be preserved on regeneration
238
# You can replace this text with custom content, and it will be preserved on regeneration
241
- 

Return to bug 6254