Bug 7413: update DBIC schema classes
authorGalen Charlton <gmc@esilibrary.com>
Tue, 8 Apr 2014 22:40:52 +0000 (22:40 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 8 Apr 2014 22:40:52 +0000 (22:40 +0000)
Note that this patch also incorpates updates
for the new branches <-> opac_news relationship.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/Schema/Result/Branch.pm
Koha/Schema/Result/Issuingrule.pm

index b7bc148..ec25add 100644 (file)
@@ -413,6 +413,21 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 opac_news
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::OpacNews>
+
+=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</branchrelations> -> 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
index aaaabb4..d3a315e 100644 (file)
@@ -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