Bugzilla – Attachment 188934 Details for
Bug 40529
Update how hold groups work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40529: [DONT PUSH] Newly generated dbic
Bug-40529-DONT-PUSH-Newly-generated-dbic.patch (text/plain), 5.04 KB, created by
Pedro Amorim
on 2025-11-03 14:12:08 UTC
(
hide
)
Description:
Bug 40529: [DONT PUSH] Newly generated dbic
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-11-03 14:12:08 UTC
Size:
5.04 KB
patch
obsolete
>From 9bf20221970d9a14c5d85fdda4ef53b5ba83d8df Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@openfifth.co.uk> >Date: Wed, 29 Oct 2025 18:03:18 +0000 >Subject: [PATCH] Bug 40529: [DONT PUSH] Newly generated dbic > >--- > Koha/Schema/Result/HoldGroup.pm | 12 +++++------ > ...pTargetHold.pm => HoldGroupsTargetHold.pm} | 20 +++++++++---------- > Koha/Schema/Result/Reserve.pm | 12 +++++------ > 3 files changed, 22 insertions(+), 22 deletions(-) > rename Koha/Schema/Result/{HoldGroupTargetHold.pm => HoldGroupsTargetHold.pm} (73%) > >diff --git a/Koha/Schema/Result/HoldGroup.pm b/Koha/Schema/Result/HoldGroup.pm >index d4deb4b2076..2b644ff1ccf 100644 >--- a/Koha/Schema/Result/HoldGroup.pm >+++ b/Koha/Schema/Result/HoldGroup.pm >@@ -95,17 +95,17 @@ __PACKAGE__->belongs_to( > }, > ); > >-=head2 hold_group_target_hold >+=head2 hold_groups_target_hold > > Type: might_have > >-Related object: L<Koha::Schema::Result::HoldGroupTargetHold> >+Related object: L<Koha::Schema::Result::HoldGroupsTargetHold> > > =cut > > __PACKAGE__->might_have( >- "hold_group_target_hold", >- "Koha::Schema::Result::HoldGroupTargetHold", >+ "hold_groups_target_hold", >+ "Koha::Schema::Result::HoldGroupsTargetHold", > { "foreign.hold_group_id" => "self.hold_group_id" }, > { cascade_copy => 0, cascade_delete => 0 }, > ); >@@ -141,8 +141,8 @@ __PACKAGE__->has_many( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 16:44:27 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5QXHYebj61H0y9VqNzlUSA >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-03 12:49:32 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a4b4MmUFpJoAkn7HbN++6A > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >diff --git a/Koha/Schema/Result/HoldGroupTargetHold.pm b/Koha/Schema/Result/HoldGroupsTargetHold.pm >similarity index 73% >rename from Koha/Schema/Result/HoldGroupTargetHold.pm >rename to Koha/Schema/Result/HoldGroupsTargetHold.pm >index 1a919e4a4ff..4584cd728f2 100644 >--- a/Koha/Schema/Result/HoldGroupTargetHold.pm >+++ b/Koha/Schema/Result/HoldGroupsTargetHold.pm >@@ -1,12 +1,12 @@ > use utf8; >-package Koha::Schema::Result::HoldGroupTargetHold; >+package Koha::Schema::Result::HoldGroupsTargetHold; > > # Created by DBIx::Class::Schema::Loader > # DO NOT MODIFY THE FIRST PART OF THIS FILE > > =head1 NAME > >-Koha::Schema::Result::HoldGroupTargetHold >+Koha::Schema::Result::HoldGroupsTargetHold > > =cut > >@@ -15,11 +15,11 @@ use warnings; > > use base 'DBIx::Class::Core'; > >-=head1 TABLE: C<hold_group_target_holds> >+=head1 TABLE: C<hold_groups_target_holds> > > =cut > >-__PACKAGE__->table("hold_group_target_holds"); >+__PACKAGE__->table("hold_groups_target_holds"); > > =head1 ACCESSORS > >@@ -70,7 +70,7 @@ __PACKAGE__->set_primary_key("hold_group_id", "reserve_id"); > > =head1 UNIQUE CONSTRAINTS > >-=head2 C<hold_group_id> >+=head2 C<uq_hold_group_target_holds_hold_group_id> > > =over 4 > >@@ -80,9 +80,9 @@ __PACKAGE__->set_primary_key("hold_group_id", "reserve_id"); > > =cut > >-__PACKAGE__->add_unique_constraint("hold_group_id", ["hold_group_id"]); >+__PACKAGE__->add_unique_constraint("uq_hold_group_target_holds_hold_group_id", ["hold_group_id"]); > >-=head2 C<reserve_id> >+=head2 C<uq_hold_group_target_holds_reserve_id> > > =over 4 > >@@ -92,7 +92,7 @@ __PACKAGE__->add_unique_constraint("hold_group_id", ["hold_group_id"]); > > =cut > >-__PACKAGE__->add_unique_constraint("reserve_id", ["reserve_id"]); >+__PACKAGE__->add_unique_constraint("uq_hold_group_target_holds_reserve_id", ["reserve_id"]); > > =head1 RELATIONS > >@@ -127,8 +127,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-23 13:01:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NtAC7d08ku24na/QpXzS1g >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-03 12:49:32 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EcoFIWRBGVt/lqf0nL6TaQ > > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm >index 78608cc6a7a..36d96048027 100644 >--- a/Koha/Schema/Result/Reserve.pm >+++ b/Koha/Schema/Result/Reserve.pm >@@ -440,17 +440,17 @@ __PACKAGE__->belongs_to( > }, > ); > >-=head2 hold_group_target_hold >+=head2 hold_groups_target_hold > > Type: might_have > >-Related object: L<Koha::Schema::Result::HoldGroupTargetHold> >+Related object: L<Koha::Schema::Result::HoldGroupsTargetHold> > > =cut > > __PACKAGE__->might_have( >- "hold_group_target_hold", >- "Koha::Schema::Result::HoldGroupTargetHold", >+ "hold_groups_target_hold", >+ "Koha::Schema::Result::HoldGroupsTargetHold", > { "foreign.reserve_id" => "self.reserve_id" }, > { cascade_copy => 0, cascade_delete => 0 }, > ); >@@ -516,8 +516,8 @@ __PACKAGE__->belongs_to( > ); > > >-# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-23 13:01:15 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gThGGm5pjnkd2qyr8GWdCw >+# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-11-03 12:49:32 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fFALXRvgTXlIrfGQJlAbhw > > __PACKAGE__->belongs_to( > "item", >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40529
:
184868
|
184869
|
184870
|
184871
|
184872
|
185137
|
185138
|
185139
|
185140
|
185141
|
185210
|
185211
|
185212
|
185213
|
185214
|
185215
|
185303
|
185304
|
185305
|
185306
|
185307
|
186793
|
186794
|
186795
|
186796
|
186797
|
186798
|
186803
|
186804
|
186825
|
186826
|
186827
|
186828
|
186829
|
186830
|
186831
|
186832
|
188348
|
188349
|
188350
|
188351
|
188352
|
188353
|
188354
|
188355
|
188356
|
188594
|
188595
|
188933
| 188934