Bug 32437: DBIC schema

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 82c552e876)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Tomas Cohen Arazi 2023-03-31 12:49:42 +02:00 committed by Jacob O'Mara
parent 1541885aa4
commit fbcbdfb1d5
2 changed files with 20 additions and 8 deletions

View File

@ -67,6 +67,18 @@ __PACKAGE__->add_columns(
{ data_type => "varchar", is_nullable => 1, size => 25 },
);
=head1 PRIMARY KEY
=over 4
=item * L</import_record_id>
=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

View File

@ -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<Koha::Schema::Result::ImportAuth>
=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';