From b5e124186e5e2246f0ac634e07c12af0ab382aa4 Mon Sep 17 00:00:00 2001 From: John Doe Date: Thu, 16 Oct 2025 14:45:12 +0000 Subject: [PATCH] Bug 41020: Update schema files [DO NOT PUSH] Signed-off-by: John Doe --- 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 a741485768b..d88da0fd145 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-10-14 20:25:57 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aepVBfAwINe8dLAE5xLi1A +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-16 14:35:38 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XjJBXlR5+u5lH8+bIsr1Eg __PACKAGE__->add_columns( '+passive' => { is_boolean => 1 }, diff --git a/Koha/Schema/Result/MarcOrderAccount.pm b/Koha/Schema/Result/MarcOrderAccount.pm index a9dcaac1bdd..3f885cd6cbc 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-16 14:35:38 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cHOGKUdmjWXCojA8gQBdvA __PACKAGE__->add_columns( '+parse_items' => { is_boolean => 1 }, -- 2.39.5 (Apple Git-154)