From 34bb9ad6331ecb424a21945d6d751d1161117e68 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 22 Jan 2026 21:06:18 +0000 Subject: [PATCH] Bug 26993: DBIC changes Signed-off-by: Lucas Gass --- Koha/Schema/Result/Item.pm | 10 +++++----- Koha/Schema/Result/ItemsLastBorrower.pm | 18 ++---------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/Koha/Schema/Result/Item.pm b/Koha/Schema/Result/Item.pm index a11725c33e..042afa0a44 100644 --- a/Koha/Schema/Result/Item.pm +++ b/Koha/Schema/Result/Item.pm @@ -825,16 +825,16 @@ __PACKAGE__->might_have( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 items_last_borrower +=head2 items_last_borrowers -Type: might_have +Type: has_many Related object: L =cut __PACKAGE__->has_many( - "items_last_borrower", + "items_last_borrowers", "Koha::Schema::Result::ItemsLastBorrower", { "foreign.itemnumber" => "self.itemnumber" }, { cascade_copy => 0, cascade_delete => 0 }, @@ -991,8 +991,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-04-28 16:41:47 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hGbnnGBWKaKzsVipsyN7ww +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-01-22 21:05:23 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:d/Q+Ym3pNstyDcgjVhLykQ __PACKAGE__->belongs_to( biblioitem => "Koha::Schema::Result::Biblioitem", "biblioitemnumber" ); diff --git a/Koha/Schema/Result/ItemsLastBorrower.pm b/Koha/Schema/Result/ItemsLastBorrower.pm index 1a97cd7673..b73d157665 100644 --- a/Koha/Schema/Result/ItemsLastBorrower.pm +++ b/Koha/Schema/Result/ItemsLastBorrower.pm @@ -78,20 +78,6 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("id"); -=head1 UNIQUE CONSTRAINTS - -=head2 C - -=over 4 - -=item * L - -=back - -=cut - -__PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); - =head1 RELATIONS =head2 borrowernumber @@ -125,8 +111,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07040 @ 2015-10-02 12:33:33 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ByHKNZCEz4a1AqTnOJgUWA +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-01-22 21:05:23 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KJ4G3ViVgIcXtUqmS18ang # You can replace this text with custom code or comments, and it will be preserved on regeneration