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

(-)a/Koha/Schema/Result/Branch.pm (-30 lines)
Lines 278-298 __PACKAGE__->has_many( Link Here
278
  { cascade_copy => 0, cascade_delete => 0 },
278
  { cascade_copy => 0, cascade_delete => 0 },
279
);
279
);
280
280
281
=head2 branch_borrower_circ_rules
282
283
Type: has_many
284
285
Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
286
287
=cut
288
289
__PACKAGE__->has_many(
290
  "branch_borrower_circ_rules",
291
  "Koha::Schema::Result::BranchBorrowerCircRule",
292
  { "foreign.branchcode" => "self.branchcode" },
293
  { cascade_copy => 0, cascade_delete => 0 },
294
);
295
296
=head2 branch_item_rules
281
=head2 branch_item_rules
297
282
298
Type: has_many
283
Type: has_many
Lines 368-388 __PACKAGE__->has_many( Link Here
368
  { cascade_copy => 0, cascade_delete => 0 },
353
  { cascade_copy => 0, cascade_delete => 0 },
369
);
354
);
370
355
371
=head2 circulation_rules
372
373
Type: has_many
374
375
Related object: L<Koha::Schema::Result::CirculationRule>
376
377
=cut
378
379
__PACKAGE__->has_many(
380
  "circulation_rules",
381
  "Koha::Schema::Result::CirculationRule",
382
  { "foreign.branchcode" => "self.branchcode" },
383
  { cascade_copy => 0, cascade_delete => 0 },
384
);
385
386
=head2 club_enrollments
356
=head2 club_enrollments
387
357
388
Type: has_many
358
Type: has_many
(-)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 (-16 lines)
Lines 165-185 __PACKAGE__->has_many( Link Here
165
  { cascade_copy => 0, cascade_delete => 0 },
165
  { cascade_copy => 0, cascade_delete => 0 },
166
);
166
);
167
167
168
=head2 circulation_rules
169
170
Type: has_many
171
172
Related object: L<Koha::Schema::Result::CirculationRule>
173
174
=cut
175
176
__PACKAGE__->has_many(
177
  "circulation_rules",
178
  "Koha::Schema::Result::CirculationRule",
179
  { "foreign.itemtype" => "self.itemtype" },
180
  { cascade_copy => 0, cascade_delete => 0 },
181
);
182
183
=head2 default_branch_item_rule
168
=head2 default_branch_item_rule
184
169
185
Type: might_have
170
Type: might_have
186
- 

Return to bug 18925