From 5bda5b1c489989f8b3ae52c3ad4740b568e27a95 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 16 Mar 2023 15:16:19 +0000 Subject: [PATCH] Bug 32437: DO NOT PUSH - Schema Updates Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- 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..f026cde71c 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-16 15:15:01 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kRerhybJQOzKfdFjkozK4Q # 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..d67160adf3 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-16 15:15:01 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CAOcvre3AiNqGbeblkzQpw sub koha_object_class { 'Koha::Import::Record'; -- 2.30.2