From cfd9701dd3f34f25f3ec430be957b4a38cad4754 Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 15 Oct 2025 17:11:30 +0000 Subject: [PATCH] Bug 41020: Update schema files [DO NOT PUSH] --- Koha/Schema/Result/FileTransport.pm | 19 +++++++++++++-- Koha/Schema/Result/MarcOrderAccount.pm | 32 ++++++++++++++++++++++++-- 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/FileTransport.pm b/Koha/Schema/Result/FileTransport.pm index 79c4b6336a3..3b90a5a367b 100644 --- a/Koha/Schema/Result/FileTransport.pm +++ b/Koha/Schema/Result/FileTransport.pm @@ -167,6 +167,21 @@ __PACKAGE__->set_primary_key("file_transport_id"); =head1 RELATIONS +=head2 marc_order_accounts + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "marc_order_accounts", + "Koha::Schema::Result::MarcOrderAccount", + { "foreign.file_transport_id" => "self.file_transport_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 vendor_edi_accounts Type: has_many @@ -183,8 +198,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-09-23 18:55:50 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PhzRy63/hkdrU9fyelSOug +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-15 16:28:38 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HXBQ2MbEc+ZVHx163d5JEg __PACKAGE__->add_columns( '+passive' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/MarcOrderAccount.pm b/Koha/Schema/Result/MarcOrderAccount.pm index a9dcaac1bdd..a852a74be92 100644 --- a/Koha/Schema/Result/MarcOrderAccount.pm +++ b/Koha/Schema/Result/MarcOrderAccount.pm @@ -140,6 +140,12 @@ the value to be matched against the marc record the field that a vendor can use to include a basket name that will be used to create the basket for the file +=head2 file_transport_id + + data_type: 'integer' + is_foreign_key: 1 + is_nullable: 1 + =cut __PACKAGE__->add_columns( @@ -173,6 +179,8 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 50 }, "basket_name_field", { data_type => "varchar", is_nullable => 1, size => 10 }, + "file_transport_id", + { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -209,6 +217,26 @@ __PACKAGE__->belongs_to( }, ); +=head2 file_transport + +Type: belongs_to + +Related object: L + +=cut + +__PACKAGE__->belongs_to( + "file_transport", + "Koha::Schema::Result::FileTransport", + { file_transport_id => "file_transport_id" }, + { + is_deferrable => 1, + join_type => "LEFT", + on_delete => "SET NULL", + on_update => "CASCADE", + }, +); + =head2 vendor Type: belongs_to @@ -230,8 +258,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-04-24 19:44:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LvRybSXMjycTWsAp2Bd4Dw +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-15 16:28:38 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:l1SI891PnNLIasuS6Zzg9A __PACKAGE__->add_columns( '+parse_items' => { is_boolean => 1 }, -- 2.39.5 (Apple Git-154)