From fbcbdfb1d509eb09cf79d411b8302534346b8731 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 31 Mar 2023 12:49:42 +0200 Subject: [PATCH] Bug 32437: DBIC schema Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 82c552e8765c4c617bcfa9792d74d8b3a4b94b67) Signed-off-by: Jacob O'Mara --- Koha/Schema/Result/ImportAuth.pm | 16 ++++++++++++++-- Koha/Schema/Result/ImportRecord.pm | 12 ++++++------ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/Koha/Schema/Result/ImportAuth.pm b/Koha/Schema/Result/ImportAuth.pm index a8fc448da1..d28e5b06c3 100644 --- a/Koha/Schema/Result/ImportAuth.pm +++ b/Koha/Schema/Result/ImportAuth.pm @@ -67,6 +67,18 @@ __PACKAGE__->add_columns( { data_type => "varchar", is_nullable => 1, size => 25 }, ); +=head1 PRIMARY KEY + +=over 4 + +=item * L + +=back + +=cut + +__PACKAGE__->set_primary_key("import_record_id"); + =head1 RELATIONS =head2 import_record @@ -85,8 +97,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bm1ctlmYDh4qWUU95SLqBw +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-31 10:47:53 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SRH+gauacnrd+nD9OtAfCQ # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/ImportRecord.pm b/Koha/Schema/Result/ImportRecord.pm index 64e9274e07..27f2439a6f 100644 --- a/Koha/Schema/Result/ImportRecord.pm +++ b/Koha/Schema/Result/ImportRecord.pm @@ -186,16 +186,16 @@ __PACKAGE__->set_primary_key("import_record_id"); =head1 RELATIONS -=head2 import_auths +=head2 import_auth -Type: has_many +Type: might_have Related object: L =cut -__PACKAGE__->has_many( - "import_auths", +__PACKAGE__->might_have( + "import_auth", "Koha::Schema::Result::ImportAuth", { "foreign.import_record_id" => "self.import_record_id" }, { cascade_copy => 0, cascade_delete => 0 }, @@ -262,8 +262,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-17 11:17:50 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bGhtHdQ7/pXWWezcgz/4EA +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-31 10:47:53 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XNZhr5GRMgyndwQMsGfGRQ sub koha_object_class { 'Koha::Import::Record'; -- 2.39.5