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

(-)a/Koha/Schema/Result/HoldGroup.pm (+95 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::HoldGroup;
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::HoldGroup
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<hold_group>
19
20
=cut
21
22
__PACKAGE__->table("hold_group");
23
24
=head1 ACCESSORS
25
26
=head2 hold_group_id
27
28
  data_type: 'integer'
29
  extra: {unsigned => 1}
30
  is_auto_increment: 1
31
  is_nullable: 0
32
33
=cut
34
35
__PACKAGE__->add_columns(
36
  "hold_group_id",
37
  {
38
    data_type => "integer",
39
    extra => { unsigned => 1 },
40
    is_auto_increment => 1,
41
    is_nullable => 0,
42
  },
43
);
44
45
=head1 PRIMARY KEY
46
47
=over 4
48
49
=item * L</hold_group_id>
50
51
=back
52
53
=cut
54
55
__PACKAGE__->set_primary_key("hold_group_id");
56
57
=head1 RELATIONS
58
59
=head2 old_reserves
60
61
Type: has_many
62
63
Related object: L<Koha::Schema::Result::OldReserve>
64
65
=cut
66
67
__PACKAGE__->has_many(
68
  "old_reserves",
69
  "Koha::Schema::Result::OldReserve",
70
  { "foreign.hold_group_id" => "self.hold_group_id" },
71
  { cascade_copy => 0, cascade_delete => 0 },
72
);
73
74
=head2 reserves
75
76
Type: has_many
77
78
Related object: L<Koha::Schema::Result::Reserve>
79
80
=cut
81
82
__PACKAGE__->has_many(
83
  "reserves",
84
  "Koha::Schema::Result::Reserve",
85
  { "foreign.hold_group_id" => "self.hold_group_id" },
86
  { cascade_copy => 0, cascade_delete => 0 },
87
);
88
89
90
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-12-22 07:22:51
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YBS0s5ZgS7w5ksLTjDYdUQ
92
93
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
95
1;
(-)a/Koha/Schema/Result/OldReserve.pm (-2 / +36 lines)
Lines 161-166 __PACKAGE__->table("old_reserves"); Link Here
161
  default_value: 0
161
  default_value: 0
162
  is_nullable: 0
162
  is_nullable: 0
163
163
164
=head2 hold_group_id
165
166
  data_type: 'integer'
167
  extra: {unsigned => 1}
168
  is_foreign_key: 1
169
  is_nullable: 1
170
164
=cut
171
=cut
165
172
166
__PACKAGE__->add_columns(
173
__PACKAGE__->add_columns(
Lines 224-229 __PACKAGE__->add_columns( Link Here
224
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
231
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
225
  "non_priority",
232
  "non_priority",
226
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
233
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
234
  "hold_group_id",
235
  {
236
    data_type => "integer",
237
    extra => { unsigned => 1 },
238
    is_foreign_key => 1,
239
    is_nullable => 1,
240
  },
227
);
241
);
228
242
229
=head1 PRIMARY KEY
243
=head1 PRIMARY KEY
Lines 280-285 __PACKAGE__->belongs_to( Link Here
280
  },
294
  },
281
);
295
);
282
296
297
=head2 hold_group
298
299
Type: belongs_to
300
301
Related object: L<Koha::Schema::Result::HoldGroup>
302
303
=cut
304
305
__PACKAGE__->belongs_to(
306
  "hold_group",
307
  "Koha::Schema::Result::HoldGroup",
308
  { hold_group_id => "hold_group_id" },
309
  {
310
    is_deferrable => 1,
311
    join_type     => "LEFT",
312
    on_delete     => "SET NULL",
313
    on_update     => "CASCADE",
314
  },
315
);
316
283
=head2 itemnumber
317
=head2 itemnumber
284
318
285
Type: belongs_to
319
Type: belongs_to
Lines 321-328 __PACKAGE__->belongs_to( Link Here
321
);
355
);
322
356
323
357
324
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-06 11:00:40
358
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-12-22 07:22:52
325
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7weIpuc0RpZ/MxFn94E8dg
359
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0i9Q9JEQIpOT+VSbQmytYw
326
360
327
__PACKAGE__->belongs_to(
361
__PACKAGE__->belongs_to(
328
  "item",
362
  "item",
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +36 lines)
Lines 166-171 __PACKAGE__->table("reserves"); Link Here
166
  default_value: 0
166
  default_value: 0
167
  is_nullable: 0
167
  is_nullable: 0
168
168
169
=head2 hold_group_id
170
171
  data_type: 'integer'
172
  extra: {unsigned => 1}
173
  is_foreign_key: 1
174
  is_nullable: 1
175
169
=cut
176
=cut
170
177
171
__PACKAGE__->add_columns(
178
__PACKAGE__->add_columns(
Lines 239-244 __PACKAGE__->add_columns( Link Here
239
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
246
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
240
  "non_priority",
247
  "non_priority",
241
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
248
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
249
  "hold_group_id",
250
  {
251
    data_type => "integer",
252
    extra => { unsigned => 1 },
253
    is_foreign_key => 1,
254
    is_nullable => 1,
255
  },
242
);
256
);
243
257
244
=head1 PRIMARY KEY
258
=head1 PRIMARY KEY
Lines 340-345 __PACKAGE__->belongs_to( Link Here
340
  },
354
  },
341
);
355
);
342
356
357
=head2 hold_group
358
359
Type: belongs_to
360
361
Related object: L<Koha::Schema::Result::HoldGroup>
362
363
=cut
364
365
__PACKAGE__->belongs_to(
366
  "hold_group",
367
  "Koha::Schema::Result::HoldGroup",
368
  { hold_group_id => "hold_group_id" },
369
  {
370
    is_deferrable => 1,
371
    join_type     => "LEFT",
372
    on_delete     => "SET NULL",
373
    on_update     => "CASCADE",
374
  },
375
);
376
343
=head2 itemnumber
377
=head2 itemnumber
344
378
345
Type: belongs_to
379
Type: belongs_to
Lines 381-388 __PACKAGE__->belongs_to( Link Here
381
);
415
);
382
416
383
417
384
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-06 11:00:40
418
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-12-22 07:22:52
385
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ue2kNBP+lq8+9NthPiYrrw
419
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:93bloHkXtOGZ6gEgW2vCTQ
386
420
387
__PACKAGE__->belongs_to(
421
__PACKAGE__->belongs_to(
388
  "item",
422
  "item",
389
- 

Return to bug 15516