Bug 31569: DBIC schema
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
4fbdac3453
commit
09a3d968ae
2 changed files with 20 additions and 8 deletions
|
@ -95,6 +95,18 @@ __PACKAGE__->add_columns(
|
|||
{ data_type => "tinyint", default_value => 0, is_nullable => 0 },
|
||||
);
|
||||
|
||||
=head1 PRIMARY KEY
|
||||
|
||||
=over 4
|
||||
|
||||
=item * L</import_record_id>
|
||||
|
||||
=back
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->set_primary_key("import_record_id");
|
||||
|
||||
=head1 RELATIONS
|
||||
|
||||
=head2 import_record
|
||||
|
@ -113,8 +125,8 @@ __PACKAGE__->belongs_to(
|
|||
);
|
||||
|
||||
|
||||
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-11-03 09:53:04
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/nOWo4fGjdch+K0T+07cSw
|
||||
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-17 11:17:50
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Oj/1VkjYP538OlNeu41mqA
|
||||
|
||||
|
||||
# You can replace this text with custom content, and it will be preserved on regeneration
|
||||
|
|
|
@ -216,16 +216,16 @@ __PACKAGE__->belongs_to(
|
|||
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
||||
);
|
||||
|
||||
=head2 import_biblios
|
||||
=head2 import_biblio
|
||||
|
||||
Type: has_many
|
||||
Type: might_have
|
||||
|
||||
Related object: L<Koha::Schema::Result::ImportBiblio>
|
||||
|
||||
=cut
|
||||
|
||||
__PACKAGE__->has_many(
|
||||
"import_biblios",
|
||||
__PACKAGE__->might_have(
|
||||
"import_biblio",
|
||||
"Koha::Schema::Result::ImportBiblio",
|
||||
{ "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.07046 @ 2019-04-18 10:50:48
|
||||
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bqIAQzhgioWtBWU8zFdtjw
|
||||
# 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
|
||||
|
||||
sub koha_object_class {
|
||||
'Koha::Import::Record';
|
||||
|
|
Loading…
Reference in a new issue