From 39be2613a1fafd9a2d2805aa4c662088e53fad53 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 8 Apr 2014 22:40:52 +0000 Subject: [PATCH] Bug 7413: update DBIC schema classes Note that this patch also incorpates updates for the new branches <-> opac_news relationship. Signed-off-by: Galen Charlton --- Koha/Schema/Result/Branch.pm | 19 +++++++++++++++++-- Koha/Schema/Result/Issuingrule.pm | 11 +++++++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/Koha/Schema/Result/Branch.pm b/Koha/Schema/Result/Branch.pm index b7bc1487f2..ec25add2f0 100644 --- a/Koha/Schema/Result/Branch.pm +++ b/Koha/Schema/Result/Branch.pm @@ -413,6 +413,21 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); +=head2 opac_news + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "opac_news", + "Koha::Schema::Result::OpacNews", + { "foreign.branchcode" => "self.branchcode" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 reserves Type: has_many @@ -469,8 +484,8 @@ Composing rels: L -> categorycode __PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode"); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-31 16:31:19 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PKoXMUUg0NUf/xVDBkPOqQ +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-04-08 22:40:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1RVlM6TXiG4B7szUQSN64Q # You can replace this text with custom content, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/Issuingrule.pm b/Koha/Schema/Result/Issuingrule.pm index aaaabb4fa8..d3a315ede7 100644 --- a/Koha/Schema/Result/Issuingrule.pm +++ b/Koha/Schema/Result/Issuingrule.pm @@ -126,6 +126,11 @@ __PACKAGE__->table("issuingrules"); data_type: 'integer' is_nullable: 1 +=head2 norenewalbefore + + data_type: 'integer' + is_nullable: 1 + =head2 reservesallowed data_type: 'smallint' @@ -189,6 +194,8 @@ __PACKAGE__->add_columns( { data_type => "smallint", default_value => 0, is_nullable => 0 }, "renewalperiod", { data_type => "integer", is_nullable => 1 }, + "norenewalbefore", + { data_type => "integer", is_nullable => 1 }, "reservesallowed", { data_type => "smallint", default_value => 0, is_nullable => 0 }, "branchcode", @@ -214,8 +221,8 @@ __PACKAGE__->add_columns( __PACKAGE__->set_primary_key("branchcode", "categorycode", "itemtype"); -# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:aq0+Nbs8f4j1SeQwc+kKRg +# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-04-08 22:40:15 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PpvUF1Q7wDFQgZJ6QzueKw # You can replace this text with custom content, and it will be preserved on regeneration -- 2.39.5