Bug 38011: DBIC schema update

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-11-11 15:00:02 +00:00
parent 4c2149b74f
commit eb5feffdaa
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 41 additions and 6 deletions

View File

@ -494,6 +494,21 @@ __PACKAGE__->belongs_to(
},
);
=head2 subscriptions
Type: has_many
Related object: L<Koha::Schema::Result::Subscription>
=cut
__PACKAGE__->has_many(
"subscriptions",
"Koha::Schema::Result::Subscription",
{ "foreign.aqbooksellerid" => "self.id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
=head2 vendor_edi_accounts
Type: has_many
@ -510,8 +525,8 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-06-30 09:54:35
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xjeOqpcdN3Kb1wmLGDjzLg
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-11 14:57:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+pD8f2kCNELUE8Ns/kabog
__PACKAGE__->add_columns(
'+active' => { is_boolean => 1 },

View File

@ -59,7 +59,7 @@ start date for this subscription
=head2 aqbooksellerid
data_type: 'integer'
default_value: 0
is_foreign_key: 1
is_nullable: 1
foreign key for aqbooksellers.id to link to the vendor
@ -353,7 +353,7 @@ __PACKAGE__->add_columns(
"startdate",
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
"aqbooksellerid",
{ data_type => "integer", default_value => 0, is_nullable => 1 },
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
"cost",
{ data_type => "integer", default_value => 0, is_nullable => 1 },
"aqbudgetid",
@ -450,6 +450,26 @@ __PACKAGE__->set_primary_key("subscriptionid");
=head1 RELATIONS
=head2 aqbooksellerid
Type: belongs_to
Related object: L<Koha::Schema::Result::Aqbookseller>
=cut
__PACKAGE__->belongs_to(
"aqbooksellerid",
"Koha::Schema::Result::Aqbookseller",
{ id => "aqbooksellerid" },
{
is_deferrable => 1,
join_type => "LEFT",
on_delete => "SET NULL",
on_update => "CASCADE",
},
);
=head2 aqorders
Type: has_many
@ -566,8 +586,8 @@ __PACKAGE__->has_many(
);
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-07-14 11:46:15
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LICIiWzag365cUAq5OYD2A
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-11 14:57:59
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1Ht7Nfl870dv1NOs4vr04g
__PACKAGE__->has_many(
"additional_field_values",