Bug 20912: DBRev 18.12.00.021
[koha.git] / Koha / Schema / Result / Itemtype.pm
index 331db3b..55331fe 100644 (file)
@@ -32,7 +32,7 @@ __PACKAGE__->table("itemtypes");
 
 =head2 description
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 rentalcharge
@@ -41,6 +41,18 @@ __PACKAGE__->table("itemtypes");
   is_nullable: 1
   size: [28,6]
 
+=head2 rentalcharge_daily
+
+  data_type: 'decimal'
+  is_nullable: 1
+  size: [28,6]
+
+=head2 rentalcharge_hourly
+
+  data_type: 'decimal'
+  is_nullable: 1
+  size: [28,6]
+
 =head2 defaultreplacecost
 
   data_type: 'decimal'
@@ -66,7 +78,7 @@ __PACKAGE__->table("itemtypes");
 
 =head2 summary
 
-  data_type: 'text'
+  data_type: 'mediumtext'
   is_nullable: 1
 
 =head2 checkinmsg
@@ -106,9 +118,13 @@ __PACKAGE__->add_columns(
   "itemtype",
   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
   "description",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "rentalcharge",
   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+  "rentalcharge_daily",
+  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
+  "rentalcharge_hourly",
+  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
   "defaultreplacecost",
   { data_type => "decimal", is_nullable => 1, size => [28, 6] },
   "processfee",
@@ -118,7 +134,7 @@ __PACKAGE__->add_columns(
   "imageurl",
   { data_type => "varchar", is_nullable => 1, size => 200 },
   "summary",
-  { data_type => "text", is_nullable => 1 },
+  { data_type => "mediumtext", is_nullable => 1 },
   "checkinmsg",
   { data_type => "varchar", is_nullable => 1, size => 255 },
   "checkinmsgtype",
@@ -165,6 +181,21 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 circulation_rules
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::CirculationRule>
+
+=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 +242,8 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-10 14:27:09
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vERtWCf17tayLdzgnXpQcA
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-03-07 17:30:46
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CDIOU6LmF7suaujk1NQOeg
 
 # Use the ItemtypeLocalization view to create the join on localization
 our $LANGUAGE;