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_groups>
19
20
=cut
21
22
__PACKAGE__->table("hold_groups");
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 @ 2022-08-04 14:43:31
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5Xzfn2C7H+Z8R9PUBPFkYw
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 / +38 lines)
Lines 215-220 Is the hpld placed at item level Link Here
215
215
216
Is this a non priority hold
216
Is this a non priority hold
217
217
218
=head2 hold_group_id
219
220
  data_type: 'integer'
221
  extra: {unsigned => 1}
222
  is_foreign_key: 1
223
  is_nullable: 1
224
225
The id of a group of titles reservations fulfilled when one title is picked
226
218
=cut
227
=cut
219
228
220
__PACKAGE__->add_columns(
229
__PACKAGE__->add_columns(
Lines 280-285 __PACKAGE__->add_columns( Link Here
280
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
289
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
281
  "non_priority",
290
  "non_priority",
282
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
291
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
292
  "hold_group_id",
293
  {
294
    data_type => "integer",
295
    extra => { unsigned => 1 },
296
    is_foreign_key => 1,
297
    is_nullable => 1,
298
  },
283
);
299
);
284
300
285
=head1 PRIMARY KEY
301
=head1 PRIMARY KEY
Lines 336-341 __PACKAGE__->belongs_to( Link Here
336
  },
352
  },
337
);
353
);
338
354
355
=head2 hold_group
356
357
Type: belongs_to
358
359
Related object: L<Koha::Schema::Result::HoldGroup>
360
361
=cut
362
363
__PACKAGE__->belongs_to(
364
  "hold_group",
365
  "Koha::Schema::Result::HoldGroup",
366
  { hold_group_id => "hold_group_id" },
367
  {
368
    is_deferrable => 1,
369
    join_type     => "LEFT",
370
    on_delete     => "SET NULL",
371
    on_update     => "SET NULL",
372
  },
373
);
374
339
=head2 itemnumber
375
=head2 itemnumber
340
376
341
Type: belongs_to
377
Type: belongs_to
Lines 377-384 __PACKAGE__->belongs_to( Link Here
377
);
413
);
378
414
379
415
380
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:08:09
416
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-08-04 14:43:32
381
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:A3iHpf4nDeIpPsapNzdv8w
417
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:g78WDUT6McwBgPbtfN0fzg
382
418
383
__PACKAGE__->belongs_to(
419
__PACKAGE__->belongs_to(
384
  "item",
420
  "item",
(-)a/Koha/Schema/Result/Reserve.pm (-3 / +38 lines)
Lines 214-219 Is the hpld placed at item level Link Here
214
214
215
Is this a non priority hold
215
Is this a non priority hold
216
216
217
=head2 hold_group_id
218
219
  data_type: 'integer'
220
  extra: {unsigned => 1}
221
  is_foreign_key: 1
222
  is_nullable: 1
223
224
The id of a group of titles reservations fulfilled when one title is picked
225
217
=cut
226
=cut
218
227
219
__PACKAGE__->add_columns(
228
__PACKAGE__->add_columns(
Lines 289-294 __PACKAGE__->add_columns( Link Here
289
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
298
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
290
  "non_priority",
299
  "non_priority",
291
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
300
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
301
  "hold_group_id",
302
  {
303
    data_type => "integer",
304
    extra => { unsigned => 1 },
305
    is_foreign_key => 1,
306
    is_nullable => 1,
307
  },
292
);
308
);
293
309
294
=head1 PRIMARY KEY
310
=head1 PRIMARY KEY
Lines 385-390 __PACKAGE__->belongs_to( Link Here
385
  },
401
  },
386
);
402
);
387
403
404
=head2 hold_group
405
406
Type: belongs_to
407
408
Related object: L<Koha::Schema::Result::HoldGroup>
409
410
=cut
411
412
__PACKAGE__->belongs_to(
413
  "hold_group",
414
  "Koha::Schema::Result::HoldGroup",
415
  { hold_group_id => "hold_group_id" },
416
  {
417
    is_deferrable => 1,
418
    join_type     => "LEFT",
419
    on_delete     => "SET NULL",
420
    on_update     => "CASCADE",
421
  },
422
);
423
388
=head2 itemnumber
424
=head2 itemnumber
389
425
390
Type: belongs_to
426
Type: belongs_to
Lines 426-433 __PACKAGE__->belongs_to( Link Here
426
);
462
);
427
463
428
464
429
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-22 17:37:42
465
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2022-08-04 14:43:32
430
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kYRPPeoVo0WMk1gH+qmi/w
466
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hvR70bywOsosk9tEG8dWSA
431
467
432
__PACKAGE__->belongs_to(
468
__PACKAGE__->belongs_to(
433
  "item",
469
  "item",
434
- 

Return to bug 15516