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

(-)a/Koha/Schema/Result/Branch.pm (-17 / +2 lines)
Lines 286-306 __PACKAGE__->has_many( Link Here
286
  { cascade_copy => 0, cascade_delete => 0 },
286
  { cascade_copy => 0, cascade_delete => 0 },
287
);
287
);
288
288
289
=head2 branch_borrower_circ_rules
290
291
Type: has_many
292
293
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
294
295
=cut
296
297
__PACKAGE__->has_many(
298
  "branch_borrower_circ_rules",
299
  "Koha::Schema::Result::BranchBorrowerCircRule",
300
  { "foreign.branchcode" => "self.branchcode" },
301
  { cascade_copy => 0, cascade_delete => 0 },
302
);
303
304
=head2 branch_item_rules
289
=head2 branch_item_rules
305
290
306
Type: has_many
291
Type: has_many
Lines 632-639 __PACKAGE__->has_many( Link Here
632
);
617
);
633
618
634
619
635
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04
620
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:18
636
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TdCV8mkKeahtG+DifEIH5A
621
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RIjGb7xn9jDkedtXdphUPA
637
622
638
623
639
# You can replace this text with custom code or comments, and it will be preserved on regeneration
624
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/BranchBorrowerCircRule.pm (-115 lines)
Lines 1-115 Link Here
1
use utf8;
2
package Koha::Schema::Result::BranchBorrowerCircRule;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::BranchBorrowerCircRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<branch_borrower_circ_rules>
19
20
=cut
21
22
__PACKAGE__->table("branch_borrower_circ_rules");
23
24
=head1 ACCESSORS
25
26
=head2 branchcode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 categorycode
34
35
  data_type: 'varchar'
36
  is_foreign_key: 1
37
  is_nullable: 0
38
  size: 10
39
40
=head2 maxissueqty
41
42
  data_type: 'integer'
43
  is_nullable: 1
44
45
=head2 maxonsiteissueqty
46
47
  data_type: 'integer'
48
  is_nullable: 1
49
50
=cut
51
52
__PACKAGE__->add_columns(
53
  "branchcode",
54
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55
  "categorycode",
56
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
57
  "maxissueqty",
58
  { data_type => "integer", is_nullable => 1 },
59
  "maxonsiteissueqty",
60
  { data_type => "integer", is_nullable => 1 },
61
);
62
63
=head1 PRIMARY KEY
64
65
=over 4
66
67
=item * L</categorycode>
68
69
=item * L</branchcode>
70
71
=back
72
73
=cut
74
75
__PACKAGE__->set_primary_key("categorycode", "branchcode");
76
77
=head1 RELATIONS
78
79
=head2 branchcode
80
81
Type: belongs_to
82
83
Related object: L<Koha::Schema::Result::Branch>
84
85
=cut
86
87
__PACKAGE__->belongs_to(
88
  "branchcode",
89
  "Koha::Schema::Result::Branch",
90
  { branchcode => "branchcode" },
91
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92
);
93
94
=head2 categorycode
95
96
Type: belongs_to
97
98
Related object: L<Koha::Schema::Result::Category>
99
100
=cut
101
102
__PACKAGE__->belongs_to(
103
  "categorycode",
104
  "Koha::Schema::Result::Category",
105
  { categorycode => "categorycode" },
106
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
107
);
108
109
110
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+MNZAKqU6GDK/Bslt9cR4g
112
113
114
# You can replace this text with custom content, and it will be preserved on regeneration
115
1;
(-)a/Koha/Schema/Result/Category.pm (-32 / +2 lines)
Lines 221-241 __PACKAGE__->has_many( Link Here
221
  { cascade_copy => 0, cascade_delete => 0 },
221
  { cascade_copy => 0, cascade_delete => 0 },
222
);
222
);
223
223
224
=head2 branch_borrower_circ_rules
225
226
Type: has_many
227
228
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
229
230
=cut
231
232
__PACKAGE__->has_many(
233
  "branch_borrower_circ_rules",
234
  "Koha::Schema::Result::BranchBorrowerCircRule",
235
  { "foreign.categorycode" => "self.categorycode" },
236
  { cascade_copy => 0, cascade_delete => 0 },
237
);
238
239
=head2 categories_branches
224
=head2 categories_branches
240
225
241
Type: has_many
226
Type: has_many
Lines 266-289 __PACKAGE__->has_many( Link Here
266
  { cascade_copy => 0, cascade_delete => 0 },
251
  { cascade_copy => 0, cascade_delete => 0 },
267
);
252
);
268
253
269
=head2 default_borrower_circ_rule
270
271
Type: might_have
272
273
Related object: L<Koha::Schema::Result::DefaultBorrowerCircRule>
274
275
=cut
276
277
__PACKAGE__->might_have(
278
  "default_borrower_circ_rule",
279
  "Koha::Schema::Result::DefaultBorrowerCircRule",
280
  { "foreign.categorycode" => "self.categorycode" },
281
  { cascade_copy => 0, cascade_delete => 0 },
282
);
283
284
254
285
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04
255
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19
286
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I3VQpfQsul8S/g9DZJrCLA
256
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:75bm1do9pImxriV4qzP2Ng
287
257
288
258
289
# You can replace this text with custom content, and it will be preserved on regeneration
259
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DefaultBorrowerCircRule.pm (-89 lines)
Lines 1-89 Link Here
1
use utf8;
2
package Koha::Schema::Result::DefaultBorrowerCircRule;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::DefaultBorrowerCircRule
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<default_borrower_circ_rules>
19
20
=cut
21
22
__PACKAGE__->table("default_borrower_circ_rules");
23
24
=head1 ACCESSORS
25
26
=head2 categorycode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 maxissueqty
34
35
  data_type: 'integer'
36
  is_nullable: 1
37
38
=head2 maxonsiteissueqty
39
40
  data_type: 'integer'
41
  is_nullable: 1
42
43
=cut
44
45
__PACKAGE__->add_columns(
46
  "categorycode",
47
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
48
  "maxissueqty",
49
  { data_type => "integer", is_nullable => 1 },
50
  "maxonsiteissueqty",
51
  { data_type => "integer", is_nullable => 1 },
52
);
53
54
=head1 PRIMARY KEY
55
56
=over 4
57
58
=item * L</categorycode>
59
60
=back
61
62
=cut
63
64
__PACKAGE__->set_primary_key("categorycode");
65
66
=head1 RELATIONS
67
68
=head2 categorycode
69
70
Type: belongs_to
71
72
Related object: L<Koha::Schema::Result::Category>
73
74
=cut
75
76
__PACKAGE__->belongs_to(
77
  "categorycode",
78
  "Koha::Schema::Result::Category",
79
  { categorycode => "categorycode" },
80
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
81
);
82
83
84
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04
85
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R0Yg31SdKMhs7wUyetMtTA
86
87
88
# You can replace this text with custom content, and it will be preserved on regeneration
89
1;
(-)a/Koha/Schema/Result/DefaultBranchCircRule.pm (-16 / +2 lines)
Lines 30-45 __PACKAGE__->table("default_branch_circ_rules"); Link Here
30
  is_nullable: 0
30
  is_nullable: 0
31
  size: 10
31
  size: 10
32
32
33
=head2 maxissueqty
34
35
  data_type: 'integer'
36
  is_nullable: 1
37
38
=head2 maxonsiteissueqty
39
40
  data_type: 'integer'
41
  is_nullable: 1
42
43
=head2 holdallowed
33
=head2 holdallowed
44
34
45
  data_type: 'tinyint'
35
  data_type: 'tinyint'
Lines 63-72 __PACKAGE__->table("default_branch_circ_rules"); Link Here
63
__PACKAGE__->add_columns(
53
__PACKAGE__->add_columns(
64
  "branchcode",
54
  "branchcode",
65
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
55
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
66
  "maxissueqty",
67
  { data_type => "integer", is_nullable => 1 },
68
  "maxonsiteissueqty",
69
  { data_type => "integer", is_nullable => 1 },
70
  "holdallowed",
56
  "holdallowed",
71
  { data_type => "tinyint", is_nullable => 1 },
57
  { data_type => "tinyint", is_nullable => 1 },
72
  "hold_fulfillment_policy",
58
  "hold_fulfillment_policy",
Lines 110-117 __PACKAGE__->belongs_to( Link Here
110
);
96
);
111
97
112
98
113
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
99
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wnrxD1/tp8X01YHmys02lg
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yndlRKQ2/PiuVTwxcWcKaw
115
101
116
102
117
# You can replace this text with custom content, and it will be preserved on regeneration
103
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/DefaultCircRule.pm (-16 / +2 lines)
Lines 30-45 __PACKAGE__->table("default_circ_rules"); Link Here
30
  extra: {list => ["singleton"]}
30
  extra: {list => ["singleton"]}
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
=head2 maxissueqty
34
35
  data_type: 'integer'
36
  is_nullable: 1
37
38
=head2 maxonsiteissueqty
39
40
  data_type: 'integer'
41
  is_nullable: 1
42
43
=head2 holdallowed
33
=head2 holdallowed
44
34
45
  data_type: 'integer'
35
  data_type: 'integer'
Lines 68-77 __PACKAGE__->add_columns( Link Here
68
    extra => { list => ["singleton"] },
58
    extra => { list => ["singleton"] },
69
    is_nullable => 0,
59
    is_nullable => 0,
70
  },
60
  },
71
  "maxissueqty",
72
  { data_type => "integer", is_nullable => 1 },
73
  "maxonsiteissueqty",
74
  { data_type => "integer", is_nullable => 1 },
75
  "holdallowed",
61
  "holdallowed",
76
  { data_type => "integer", is_nullable => 1 },
62
  { data_type => "integer", is_nullable => 1 },
77
  "hold_fulfillment_policy",
63
  "hold_fulfillment_policy",
Lines 98-105 __PACKAGE__->add_columns( Link Here
98
__PACKAGE__->set_primary_key("singleton");
84
__PACKAGE__->set_primary_key("singleton");
99
85
100
86
101
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-04-29 10:32:00
87
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fqBrj0c9h9c0eBlC0kG51w
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gK31uDEPhVm6AyqjhQ6HAg
103
89
104
90
105
# You can replace this text with custom content, and it will be preserved on regeneration
91
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Issuingrule.pm (-17 / +2 lines)
Lines 103-118 __PACKAGE__->table("issuingrules"); Link Here
103
  is_nullable: 1
103
  is_nullable: 1
104
  size: 100
104
  size: 100
105
105
106
=head2 maxissueqty
107
108
  data_type: 'integer'
109
  is_nullable: 1
110
111
=head2 maxonsiteissueqty
112
113
  data_type: 'integer'
114
  is_nullable: 1
115
116
=head2 issuelength
106
=head2 issuelength
117
107
118
  data_type: 'integer'
108
  data_type: 'integer'
Lines 252-261 __PACKAGE__->add_columns( Link Here
252
  { data_type => "integer", is_nullable => 1 },
242
  { data_type => "integer", is_nullable => 1 },
253
  "chargename",
243
  "chargename",
254
  { data_type => "varchar", is_nullable => 1, size => 100 },
244
  { data_type => "varchar", is_nullable => 1, size => 100 },
255
  "maxissueqty",
256
  { data_type => "integer", is_nullable => 1 },
257
  "maxonsiteissueqty",
258
  { data_type => "integer", is_nullable => 1 },
259
  "issuelength",
245
  "issuelength",
260
  { data_type => "integer", is_nullable => 1 },
246
  { data_type => "integer", is_nullable => 1 },
261
  "lengthunit",
247
  "lengthunit",
Lines 321-328 __PACKAGE__->add_columns( Link Here
321
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
307
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
322
308
323
309
324
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-12-13 12:44:30
310
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 18:29:19
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VBD8atc/D/6rN0D+aTaSOQ
311
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kkaZQ8a9rMpBvjHn8ERKWQ
326
312
327
313
328
# You can replace this text with custom code or comments, and it will be preserved on regeneration
314
# You can replace this text with custom code or comments, and it will be preserved on regeneration
329
- 

Return to bug 18925