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

(-)a/Koha/Schema/Result/Branch.pm (-32 / +2 lines)
Lines 270-290 __PACKAGE__->has_many( Link Here
270
  { cascade_copy => 0, cascade_delete => 0 },
270
  { cascade_copy => 0, cascade_delete => 0 },
271
);
271
);
272
272
273
=head2 branch_borrower_circ_rules
274
275
Type: has_many
276
277
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
278
279
=cut
280
281
__PACKAGE__->has_many(
282
  "branch_borrower_circ_rules",
283
  "Koha::Schema::Result::BranchBorrowerCircRule",
284
  { "foreign.branchcode" => "self.branchcode" },
285
  { cascade_copy => 0, cascade_delete => 0 },
286
);
287
288
=head2 branch_item_rules
273
=head2 branch_item_rules
289
274
290
Type: has_many
275
Type: has_many
Lines 360-380 __PACKAGE__->has_many( Link Here
360
  { cascade_copy => 0, cascade_delete => 0 },
345
  { cascade_copy => 0, cascade_delete => 0 },
361
);
346
);
362
347
363
=head2 circulation_rules
364
365
Type: has_many
366
367
Related object: L<Koha::Schema::Result::CirculationRule>
368
369
=cut
370
371
__PACKAGE__->has_many(
372
  "circulation_rules",
373
  "Koha::Schema::Result::CirculationRule",
374
  { "foreign.branchcode" => "self.branchcode" },
375
  { cascade_copy => 0, cascade_delete => 0 },
376
);
377
378
=head2 club_enrollments
348
=head2 club_enrollments
379
349
380
Type: has_many
350
Type: has_many
Lines 611-618 Composing rels: L</branchrelations> -> categorycode Link Here
611
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
581
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
612
582
613
583
614
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15
584
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-03 15:35:15
615
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gRtifDOxndV9CLNpFr0XpQ
585
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9z/UhS1n8kZ2OEvevR8KZg
616
586
617
587
618
# You can replace this text with custom code or comments, and it will be preserved on regeneration
588
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Category.pm (-47 / +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 251-289 __PACKAGE__->has_many( Link Here
251
  { cascade_copy => 0, cascade_delete => 0 },
236
  { cascade_copy => 0, cascade_delete => 0 },
252
);
237
);
253
238
254
=head2 circulation_rules
255
256
Type: has_many
257
258
Related object: L<Koha::Schema::Result::CirculationRule>
259
260
=cut
261
262
__PACKAGE__->has_many(
263
  "circulation_rules",
264
  "Koha::Schema::Result::CirculationRule",
265
  { "foreign.categorycode" => "self.categorycode" },
266
  { cascade_copy => 0, cascade_delete => 0 },
267
);
268
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
239
285
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15
240
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-03 15:35:15
286
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bb9BvkU4r6/J8rD9z2sDrA
241
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Nyb7RzCc6y0W0izWTjksoA
287
242
288
243
289
# You can replace this text with custom content, and it will be preserved on regeneration
244
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/CirculationRule.pm (-70 / +5 lines)
Lines 32-52 __PACKAGE__->table("circulation_rules"); Link Here
32
=head2 branchcode
32
=head2 branchcode
33
33
34
  data_type: 'varchar'
34
  data_type: 'varchar'
35
  is_foreign_key: 1
36
  is_nullable: 1
35
  is_nullable: 1
37
  size: 10
36
  size: 10
38
37
39
=head2 categorycode
38
=head2 categorycode
40
39
41
  data_type: 'varchar'
40
  data_type: 'varchar'
42
  is_foreign_key: 1
43
  is_nullable: 1
41
  is_nullable: 1
44
  size: 10
42
  size: 10
45
43
46
=head2 itemtype
44
=head2 itemtype
47
45
48
  data_type: 'varchar'
46
  data_type: 'varchar'
49
  is_foreign_key: 1
50
  is_nullable: 1
47
  is_nullable: 1
51
  size: 10
48
  size: 10
52
49
Lines 68-78 __PACKAGE__->add_columns( Link Here
68
  "id",
65
  "id",
69
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
70
  "branchcode",
67
  "branchcode",
71
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
68
  { data_type => "varchar", is_nullable => 1, size => 10 },
72
  "categorycode",
69
  "categorycode",
73
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
70
  { data_type => "varchar", is_nullable => 1, size => 10 },
74
  "itemtype",
71
  "itemtype",
75
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
72
  { data_type => "varchar", is_nullable => 1, size => 10 },
76
  "rule_name",
73
  "rule_name",
77
  { data_type => "varchar", is_nullable => 0, size => 32 },
74
  { data_type => "varchar", is_nullable => 0, size => 32 },
78
  "rule_value",
75
  "rule_value",
Lines 109-179 __PACKAGE__->set_primary_key("id"); Link Here
109
106
110
__PACKAGE__->add_unique_constraint("branchcode_2", ["branchcode", "categorycode", "itemtype"]);
107
__PACKAGE__->add_unique_constraint("branchcode_2", ["branchcode", "categorycode", "itemtype"]);
111
108
112
=head1 RELATIONS
113
109
114
=head2 branchcode
110
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-03 15:35:15
115
111
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ok1AzADM8/wcfU9xS7LgNQ
116
Type: belongs_to
117
118
Related object: L<Koha::Schema::Result::Branch>
119
120
=cut
121
122
__PACKAGE__->belongs_to(
123
  "branchcode",
124
  "Koha::Schema::Result::Branch",
125
  { branchcode => "branchcode" },
126
  {
127
    is_deferrable => 1,
128
    join_type     => "LEFT",
129
    on_delete     => "CASCADE",
130
    on_update     => "CASCADE",
131
  },
132
);
133
134
=head2 categorycode
135
136
Type: belongs_to
137
138
Related object: L<Koha::Schema::Result::Category>
139
140
=cut
141
142
__PACKAGE__->belongs_to(
143
  "categorycode",
144
  "Koha::Schema::Result::Category",
145
  { categorycode => "categorycode" },
146
  {
147
    is_deferrable => 1,
148
    join_type     => "LEFT",
149
    on_delete     => "CASCADE",
150
    on_update     => "CASCADE",
151
  },
152
);
153
154
=head2 itemtype
155
156
Type: belongs_to
157
158
Related object: L<Koha::Schema::Result::Itemtype>
159
160
=cut
161
162
__PACKAGE__->belongs_to(
163
  "itemtype",
164
  "Koha::Schema::Result::Itemtype",
165
  { itemtype => "itemtype" },
166
  {
167
    is_deferrable => 1,
168
    join_type     => "LEFT",
169
    on_delete     => "CASCADE",
170
    on_update     => "CASCADE",
171
  },
172
);
173
174
175
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15
176
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cp5jbv46L3LtPVxSla8dpA
177
112
178
113
179
# You can replace this text with custom code or comments, and it will be preserved on regeneration
114
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)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 @ 2017-07-03 15:35:15
114
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wnrxD1/tp8X01YHmys02lg
100
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wRSLGcTo92mEydJ3iBm1uA
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 @ 2017-07-03 15:35:15
102
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fqBrj0c9h9c0eBlC0kG51w
88
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mpcQmnxL15ai/pDKxxYmPw
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 (-16 / +2 lines)
Lines 97-112 __PACKAGE__->table("issuingrules"); Link Here
97
  is_nullable: 1
97
  is_nullable: 1
98
  size: 100
98
  size: 100
99
99
100
=head2 maxissueqty
101
102
  data_type: 'integer'
103
  is_nullable: 1
104
105
=head2 maxonsiteissueqty
106
107
  data_type: 'integer'
108
  is_nullable: 1
109
110
=head2 issuelength
100
=head2 issuelength
111
101
112
  data_type: 'integer'
102
  data_type: 'integer'
Lines 244-253 __PACKAGE__->add_columns( Link Here
244
  { data_type => "integer", is_nullable => 1 },
234
  { data_type => "integer", is_nullable => 1 },
245
  "chargename",
235
  "chargename",
246
  { data_type => "varchar", is_nullable => 1, size => 100 },
236
  { data_type => "varchar", is_nullable => 1, size => 100 },
247
  "maxissueqty",
248
  { data_type => "integer", is_nullable => 1 },
249
  "maxonsiteissueqty",
250
  { data_type => "integer", is_nullable => 1 },
251
  "issuelength",
237
  "issuelength",
252
  { data_type => "integer", is_nullable => 1 },
238
  { data_type => "integer", is_nullable => 1 },
253
  "lengthunit",
239
  "lengthunit",
Lines 313-320 __PACKAGE__->add_columns( Link Here
313
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
299
__PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype");
314
300
315
301
316
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-27 19:15:48
302
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-03 15:35:15
317
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D1443VWPcoIXN3+lIkckIQ
303
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dxv4gdxTEP+dd6MY0Y/lcw
318
304
319
305
320
# You can replace this text with custom code or comments, and it will be preserved on regeneration
306
# You can replace this text with custom code or comments, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Itemtype.pm (-18 / +2 lines)
Lines 149-169 __PACKAGE__->has_many( Link Here
149
  { cascade_copy => 0, cascade_delete => 0 },
149
  { cascade_copy => 0, cascade_delete => 0 },
150
);
150
);
151
151
152
=head2 circulation_rules
153
154
Type: has_many
155
156
Related object: L<Koha::Schema::Result::CirculationRule>
157
158
=cut
159
160
__PACKAGE__->has_many(
161
  "circulation_rules",
162
  "Koha::Schema::Result::CirculationRule",
163
  { "foreign.itemtype" => "self.itemtype" },
164
  { cascade_copy => 0, cascade_delete => 0 },
165
);
166
167
=head2 default_branch_item_rule
152
=head2 default_branch_item_rule
168
153
169
Type: might_have
154
Type: might_have
Lines 210-217 __PACKAGE__->has_many( Link Here
210
);
195
);
211
196
212
197
213
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-06-28 04:08:15
198
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-07-03 15:35:15
214
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7o86hHDFdmHShwhJ/iIzew
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tXTiZk4HKLEBWm/tBXJ9Dw
215
200
216
# Use the ItemtypeLocalization view to create the join on localization
201
# Use the ItemtypeLocalization view to create the join on localization
217
our $LANGUAGE;
202
our $LANGUAGE;
218
- 

Return to bug 18925