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

(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 1391-1396 __PACKAGE__->has_many( Link Here
1391
  { cascade_copy => 0, cascade_delete => 0 },
1391
  { cascade_copy => 0, cascade_delete => 0 },
1392
);
1392
);
1393
1393
1394
=head2 hold_groups
1395
1396
Type: has_many
1397
1398
Related object: L<Koha::Schema::Result::HoldGroup>
1399
1400
=cut
1401
1402
__PACKAGE__->has_many(
1403
  "hold_groups",
1404
  "Koha::Schema::Result::HoldGroup",
1405
  { "foreign.borrowernumber" => "self.borrowernumber" },
1406
  { cascade_copy => 0, cascade_delete => 0 },
1407
);
1408
1394
=head2 housebound_profile
1409
=head2 housebound_profile
1395
1410
1396
Type: might_have
1411
Type: might_have
Lines 2197-2204 Composing rels: L</user_permissions> -> permission Link Here
2197
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2212
__PACKAGE__->many_to_many("permissions", "user_permissions", "permission");
2198
2213
2199
2214
2200
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-10 07:11:31
2215
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-07-16 10:57:50
2201
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XFOe2X4k2DUziaNS5pWd/Q
2216
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1mCQb2VuHB10JWtlJXTBWw
2202
2217
2203
__PACKAGE__->belongs_to(
2218
__PACKAGE__->belongs_to(
2204
  "library",
2219
  "library",
(-)a/Koha/Schema/Result/HoldGroup.pm (-3 / +41 lines)
Lines 30-35 __PACKAGE__->table("hold_groups"); Link Here
30
  is_auto_increment: 1
30
  is_auto_increment: 1
31
  is_nullable: 0
31
  is_nullable: 0
32
32
33
=head2 borrowernumber
34
35
  data_type: 'integer'
36
  is_foreign_key: 1
37
  is_nullable: 1
38
39
foreign key, linking this to the borrowers table
40
41
=head2 visual_hold_group_id
42
43
  data_type: 'integer'
44
  is_nullable: 1
45
46
visual ID for this hold group, in the context of the related patron
47
33
=cut
48
=cut
34
49
35
__PACKAGE__->add_columns(
50
__PACKAGE__->add_columns(
Lines 40-45 __PACKAGE__->add_columns( Link Here
40
    is_auto_increment => 1,
55
    is_auto_increment => 1,
41
    is_nullable => 0,
56
    is_nullable => 0,
42
  },
57
  },
58
  "borrowernumber",
59
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
60
  "visual_hold_group_id",
61
  { data_type => "integer", is_nullable => 1 },
43
);
62
);
44
63
45
=head1 PRIMARY KEY
64
=head1 PRIMARY KEY
Lines 56-61 __PACKAGE__->set_primary_key("hold_group_id"); Link Here
56
75
57
=head1 RELATIONS
76
=head1 RELATIONS
58
77
78
=head2 borrowernumber
79
80
Type: belongs_to
81
82
Related object: L<Koha::Schema::Result::Borrower>
83
84
=cut
85
86
__PACKAGE__->belongs_to(
87
  "borrowernumber",
88
  "Koha::Schema::Result::Borrower",
89
  { borrowernumber => "borrowernumber" },
90
  {
91
    is_deferrable => 1,
92
    join_type     => "LEFT",
93
    on_delete     => "CASCADE",
94
    on_update     => "RESTRICT",
95
  },
96
);
97
59
=head2 old_reserves
98
=head2 old_reserves
60
99
61
Type: has_many
100
Type: has_many
Lines 87-94 __PACKAGE__->has_many( Link Here
87
);
126
);
88
127
89
128
90
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-03 17:08:22
129
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-16 08:38:47
91
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:m3/7K38O11278k5glHlXAA
130
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:K942uOr52EEdt/f3Sm6i5Q
92
131
93
132
94
# You can replace this text with custom code or comments, and it will be preserved on regeneration
133
# You can replace this text with custom code or comments, and it will be preserved on regeneration
95
- 

Return to bug 40517