Bugzilla – Attachment 112532 Details for
Bug 23019
Ability to create 'matching profiles' when importing records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23019: Add koha_object_class and koha_objects_class methods to ImportBatch.pm schema
Bug-23019-Add-kohaobjectclass-and-kohaobjectsclass.patch (text/plain), 2.20 KB, created by
Agustín Moyano
on 2020-10-26 18:57:32 UTC
(
hide
)
Description:
Bug 23019: Add koha_object_class and koha_objects_class methods to ImportBatch.pm schema
Filename:
MIME Type:
Creator:
Agustín Moyano
Created:
2020-10-26 18:57:32 UTC
Size:
2.20 KB
patch
obsolete
>From 8b37dd049a4d77a7f79d9b50775094f67705993a Mon Sep 17 00:00:00 2001 >From: Agustin Moyano <agustinmoyano@theke.io> >Date: Fri, 15 May 2020 11:09:51 -0300 >Subject: [PATCH] Bug 23019: Add koha_object_class and koha_objects_class > methods to ImportBatch.pm schema > >Signed-off-by: Abbey Holt <aholt@dubuque.lib.ia.us> >--- > Koha/Schema/Result/ImportBatch.pm | 52 +++++++++++++++++++++++++++++-- > 1 file changed, 49 insertions(+), 3 deletions(-) > >diff --git a/Koha/Schema/Result/ImportBatch.pm b/Koha/Schema/Result/ImportBatch.pm >index c2fd81c79a..63641181dd 100644 >--- a/Koha/Schema/Result/ImportBatch.pm >+++ b/Koha/Schema/Result/ImportBatch.pm >@@ -117,6 +117,12 @@ __PACKAGE__->table("import_batches"); > data_type: 'longtext' > is_nullable: 1 > >+=head2 profile_id >+ >+ data_type: 'integer' >+ is_foreign_key: 1 >+ is_nullable: 1 >+ > =cut > > __PACKAGE__->add_columns( >@@ -203,6 +209,8 @@ __PACKAGE__->add_columns( > { data_type => "varchar", is_nullable => 1, size => 100 }, > "comments", > { data_type => "longtext", is_nullable => 1 }, >+ "profile_id", >+ { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, > ); > > =head1 PRIMARY KEY >@@ -234,10 +242,48 @@ __PACKAGE__->has_many( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+=head2 profile >+ >+Type: belongs_to >+ >+Related object: L<Koha::Schema::Result::ImportBatchesProfile> >+ >+=cut >+ >+__PACKAGE__->belongs_to( >+ "profile", >+ "Koha::Schema::Result::ImportBatchesProfile", >+ { id => "profile_id" }, >+ { >+ is_deferrable => 1, >+ join_type => "LEFT", >+ on_delete => "SET NULL", >+ on_update => "SET NULL", >+ }, >+); >+ >+ >+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-03 15:47:08 >+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jGfBdM8ht823HaxSr2c9Wg > >-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 >-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:41giNJCRD9WXC4IGO/1D3A >+=head2 koha_object_class >+ >+ Koha Object class >+ >+=cut >+ >+sub koha_object_class { >+ 'Koha::ImportBatch'; >+} >+ >+=head2 koha_objects_class >+ >+ Koha Objects class >+ >+=cut > >+sub koha_objects_class { >+ 'Koha::ImportBatches'; >+} > >-# You can replace this text with custom content, and it will be preserved on regeneration > 1; >-- >2.25.0
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 23019
:
104972
|
104973
|
104974
|
104975
|
104976
|
105536
|
105537
|
105538
|
105539
|
105540
|
105541
|
105555
|
105600
|
105601
|
105602
|
105603
|
105604
|
106555
|
109265
|
109266
|
109637
|
112531
|
112532
|
112533
|
112534
|
112535
|
112536
|
112537
|
112715
|
112716
|
112717
|
112718
|
112719
|
112720
|
112721
|
112722
|
113276
|
113277
|
113311
|
113416
|
113421