Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / Subscriptionhistory.pm
index 471dc52..a82341e 100644 (file)
@@ -1,17 +1,21 @@
+use utf8;
 package Koha::Schema::Result::Subscriptionhistory;
 
 # Created by DBIx::Class::Schema::Loader
 # DO NOT MODIFY THE FIRST PART OF THIS FILE
 
+=head1 NAME
+
+Koha::Schema::Result::Subscriptionhistory
+
+=cut
+
 use strict;
 use warnings;
 
 use base 'DBIx::Class::Core';
 
-
-=head1 NAME
-
-Koha::Schema::Result::Subscriptionhistory
+=head1 TABLE: C<subscriptionhistory>
 
 =cut
 
@@ -34,11 +38,13 @@ __PACKAGE__->table("subscriptionhistory");
 =head2 histstartdate
 
   data_type: 'date'
+  datetime_undef_if_invalid: 1
   is_nullable: 1
 
 =head2 histenddate
 
   data_type: 'date'
+  datetime_undef_if_invalid: 1
   is_nullable: 1
 
 =head2 missinglist
@@ -53,17 +59,13 @@ __PACKAGE__->table("subscriptionhistory");
 
 =head2 opacnote
 
-  data_type: 'varchar'
-  default_value: (empty string)
-  is_nullable: 0
-  size: 150
+  data_type: 'longtext'
+  is_nullable: 1
 
 =head2 librariannote
 
-  data_type: 'varchar'
-  default_value: (empty string)
-  is_nullable: 0
-  size: 150
+  data_type: 'longtext'
+  is_nullable: 1
 
 =cut
 
@@ -73,24 +75,40 @@ __PACKAGE__->add_columns(
   "subscriptionid",
   { data_type => "integer", default_value => 0, is_nullable => 0 },
   "histstartdate",
-  { data_type => "date", is_nullable => 1 },
+  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
   "histenddate",
-  { data_type => "date", is_nullable => 1 },
+  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
   "missinglist",
   { data_type => "longtext", is_nullable => 0 },
   "recievedlist",
   { data_type => "longtext", is_nullable => 0 },
   "opacnote",
-  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
+  { data_type => "longtext", is_nullable => 1 },
   "librariannote",
-  { data_type => "varchar", default_value => "", is_nullable => 0, size => 150 },
+  { data_type => "longtext", is_nullable => 1 },
 );
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</subscriptionid>
+
+=back
+
+=cut
+
 __PACKAGE__->set_primary_key("subscriptionid");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sAkoymtV5cqWuY1fJi/UXg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-06-17 07:24:39
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SK33dc7lx/rDGX3tiR84ww
 
+sub koha_object_class {
+    'Koha::Subscription::History';
+}
+sub koha_objects_class {
+    'Koha::Subscription::Historys';
+}
 
-# You can replace this text with custom content, and it will be preserved on regeneration
 1;