@@ -, +, @@ --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/BranchBorrowerCircRule.pm | 11 ++--------- Koha/Schema/Result/Category.pm | 19 +++++++++++++++++-- Koha/Schema/Result/DefaultBorrowerCircRule.pm | 11 ++--------- Koha/Schema/Result/Itemtype.pm | 19 +++++++++++++++++-- 5 files changed, 55 insertions(+), 24 deletions(-) --- a/Koha/Schema/Result/Branch.pm +++ a/Koha/Schema/Result/Branch.pm @@ -361,6 +361,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 circulation_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "circulation_rules", + "Koha::Schema::Result::CirculationRule", + { "foreign.branchcode" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 club_enrollments Type: has_many @@ -617,8 +632,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-06 16:28:49 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:N0tdcSAb4bMht/i0chipYQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TdCV8mkKeahtG+DifEIH5A # You can replace this text with custom code or comments, and it will be preserved on regeneration --- a/Koha/Schema/Result/BranchBorrowerCircRule.pm +++ a/Koha/Schema/Result/BranchBorrowerCircRule.pm @@ -47,11 +47,6 @@ __PACKAGE__->table("branch_borrower_circ_rules"); data_type: 'integer' is_nullable: 1 -=head2 max_holds - - data_type: 'integer' - is_nullable: 1 - =cut __PACKAGE__->add_columns( @@ -63,8 +58,6 @@ __PACKAGE__->add_columns( { data_type => "integer", is_nullable => 1 }, "maxonsiteissueqty", { data_type => "integer", is_nullable => 1 }, - "max_holds", - { data_type => "integer", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -114,8 +107,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-25 15:10:08 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lgs8B3omV3Au570af/VF2g +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+MNZAKqU6GDK/Bslt9cR4g # You can replace this text with custom content, and it will be preserved on regeneration --- a/Koha/Schema/Result/Category.pm +++ a/Koha/Schema/Result/Category.pm @@ -251,6 +251,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 circulation_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "circulation_rules", + "Koha::Schema::Result::CirculationRule", + { "foreign.categorycode" => "self.categorycode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 default_borrower_circ_rule Type: might_have @@ -267,8 +282,8 @@ __PACKAGE__->might_have( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TGAiiFICSjlKNvnfa87kFQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I3VQpfQsul8S/g9DZJrCLA # You can replace this text with custom content, and it will be preserved on regeneration --- a/Koha/Schema/Result/DefaultBorrowerCircRule.pm +++ a/Koha/Schema/Result/DefaultBorrowerCircRule.pm @@ -40,11 +40,6 @@ __PACKAGE__->table("default_borrower_circ_rules"); data_type: 'integer' is_nullable: 1 -=head2 max_holds - - data_type: 'integer' - is_nullable: 1 - =cut __PACKAGE__->add_columns( @@ -54,8 +49,6 @@ __PACKAGE__->add_columns( { data_type => "integer", is_nullable => 1 }, "maxonsiteissueqty", { data_type => "integer", is_nullable => 1 }, - "max_holds", - { data_type => "integer", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -88,8 +81,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-08-25 15:10:09 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hv9wFvd5mb8Ch7RPCZynoA +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R0Yg31SdKMhs7wUyetMtTA # You can replace this text with custom content, and it will be preserved on regeneration --- a/Koha/Schema/Result/Itemtype.pm +++ a/Koha/Schema/Result/Itemtype.pm @@ -165,6 +165,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 circulation_rules + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "circulation_rules", + "Koha::Schema::Result::CirculationRule", + { "foreign.itemtype" => "self.itemtype" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 default_branch_item_rule Type: might_have @@ -211,8 +226,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cNP7/nYGdVeKZ8L7sp1+FQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-09-29 17:29:04 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OpZLneGL0vjLu3LRPJPCWw # Use the ItemtypeLocalization view to create the join on localization our $LANGUAGE; --