From a17902e1c503b0c4466b273b67c244465e77dcfb Mon Sep 17 00:00:00 2001 From: Victor Grousset/tuxayo Date: Wed, 23 Feb 2022 20:40:59 +0100 Subject: [PATCH] Bug 29495: DBIC schema changes Signed-off-by: Victor Grousset/tuxayo --- Koha/Schema/Result/Issue.pm | 19 ++----------------- Koha/Schema/Result/ReturnClaim.pm | 27 +++------------------------ 2 files changed, 5 insertions(+), 41 deletions(-) diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm index 24f69275d7..3b7c6105d8 100644 --- a/Koha/Schema/Result/Issue.pm +++ b/Koha/Schema/Result/Issue.pm @@ -284,24 +284,9 @@ __PACKAGE__->belongs_to( }, ); -=head2 return_claim -Type: might_have - -Related object: L - -=cut - -__PACKAGE__->might_have( - "return_claim", - "Koha::Schema::Result::ReturnClaim", - { "foreign.issue_id" => "self.issue_id" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - - -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-11-11 14:23:25 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SbeR9Pgvk2sMd+dYPAiCeA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-23 19:37:50 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oqAMuNRRm6C6+Ko6KGuafQ __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/ReturnClaim.pm b/Koha/Schema/Result/ReturnClaim.pm index f088a80fd6..fb2e95378f 100644 --- a/Koha/Schema/Result/ReturnClaim.pm +++ b/Koha/Schema/Result/ReturnClaim.pm @@ -38,7 +38,6 @@ __PACKAGE__->table("return_claims"); =head2 issue_id data_type: 'integer' - is_foreign_key: 1 is_nullable: 1 =head2 borrowernumber @@ -102,7 +101,7 @@ __PACKAGE__->add_columns( "itemnumber", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "issue_id", - { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, + { data_type => "integer", is_nullable => 1 }, "borrowernumber", { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, "notes", @@ -198,26 +197,6 @@ __PACKAGE__->belongs_to( }, ); -=head2 issue - -Type: belongs_to - -Related object: L - -=cut - -__PACKAGE__->belongs_to( - "issue", - "Koha::Schema::Result::Issue", - { issue_id => "issue_id" }, - { - is_deferrable => 1, - join_type => "LEFT", - on_delete => "SET NULL", - on_update => "CASCADE", - }, -); - =head2 itemnumber Type: belongs_to @@ -274,8 +253,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-31 12:18:39 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a1MJxAPCP8yuYvzkXp5q8w +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-02-23 19:37:50 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3V5bUmu5W3+XS0fa8uR04w sub koha_objects_class { 'Koha::Checkouts::ReturnClaims'; -- 2.39.5