Bugzilla – Attachment 187938 Details for
Bug 41020
Add ability to use file transports for marc ordering accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41020: Update schema files [DO NOT PUSH]
Bug-41020-Update-schema-files-DO-NOT-PUSH.patch (text/plain), 3.17 KB, created by
Kyle M Hall (khall)
on 2025-10-15 18:45:41 UTC
(
hide
)
Description:
Bug 41020: Update schema files [DO NOT PUSH]
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2025-10-15 18:45:41 UTC
Size:
3.17 KB
patch
obsolete
>From ef3b359fe8bec4d5b5b539ac1bfbb36d754b832a Mon Sep 17 00:00:00 2001 >From: John Doe <you@example.com> >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<Koha::Schema::Result::MarcOrderAccount> >+ >+=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<Koha::Schema::Result::FileTransport> >+ >+=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)
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 41020
:
187931
|
187932
|
187933
|
187934
|
187935
|
187936
|
187937
|
187938
|
187939
|
187940
|
187941
|
187942