Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / Issue.pm
index eef46af..566f87b 100644 (file)
@@ -68,7 +68,8 @@ __PACKAGE__->table("issues");
 =head2 renewals
 
   data_type: 'tinyint'
-  is_nullable: 1
+  default_value: 0
+  is_nullable: 0
 
 =head2 auto_renew
 
@@ -103,7 +104,7 @@ __PACKAGE__->table("issues");
 
 =head2 note
 
-  data_type: 'mediumtext'
+  data_type: 'longtext'
   is_nullable: 1
 
 =head2 notedate
@@ -112,6 +113,11 @@ __PACKAGE__->table("issues");
   datetime_undef_if_invalid: 1
   is_nullable: 1
 
+=head2 noteseen
+
+  data_type: 'integer'
+  is_nullable: 1
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -142,7 +148,7 @@ __PACKAGE__->add_columns(
     is_nullable => 1,
   },
   "renewals",
-  { data_type => "tinyint", is_nullable => 1 },
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
   "auto_renew",
   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
   "auto_renew_error",
@@ -163,13 +169,15 @@ __PACKAGE__->add_columns(
   "onsite_checkout",
   { data_type => "integer", default_value => 0, is_nullable => 0 },
   "note",
-  { data_type => "mediumtext", is_nullable => 1 },
+  { data_type => "longtext", is_nullable => 1 },
   "notedate",
   {
     data_type => "datetime",
     datetime_undef_if_invalid => 1,
     is_nullable => 1,
   },
+  "noteseen",
+  { data_type => "integer", is_nullable => 1 },
 );
 
 =head1 PRIMARY KEY
@@ -241,8 +249,13 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-05-03 04:12:22
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ozRQZiF1LlOJy4KI53OpFw
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-10 19:55:44
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PUF5X7X9K44BC0d43Rat7w
+
+__PACKAGE__->add_columns(
+    '+auto_renew'      => { is_boolean => 1 },
+    '+onsite_checkout' => { is_boolean => 1 }
+);
 
 __PACKAGE__->belongs_to(
     "borrower",
@@ -275,4 +288,11 @@ __PACKAGE__->belongs_to(
   },
 );
 
+sub koha_object_class {
+    'Koha::Checkout';
+}
+sub koha_objects_class {
+    'Koha::Checkouts';
+}
+
 1;