Bug 31086: DBIC update
[koha-ffzg.git] / Koha / Schema / Result / Reserve.pm
index 8ddda14..c280e27 100644 (file)
@@ -61,7 +61,7 @@ foreign key from the biblio table defining which bib record this hold is on
 
   data_type: 'varchar'
   is_foreign_key: 1
-  is_nullable: 1
+  is_nullable: 0
   size: 10
 
 foreign key from the branches table defining which branch the patron wishes to pick this hold up at
@@ -160,7 +160,15 @@ the date the item was marked as waiting for the patron at the library
   datetime_undef_if_invalid: 1
   is_nullable: 1
 
-the date the hold expires (usually the date entered by the patron to say they don't need the hold after a certain date)
+the date the hold expires (calculated value)
+
+=head2 patron_expiration_date
+
+  data_type: 'date'
+  datetime_undef_if_invalid: 1
+  is_nullable: 1
+
+the date the hold expires - usually the date entered by the patron to say they don't need the hold after a certain date
 
 =head2 lowestPriority
 
@@ -228,7 +236,7 @@ __PACKAGE__->add_columns(
     is_nullable    => 0,
   },
   "branchcode",
-  { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
+  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
   "desk_id",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
   "notificationdate",
@@ -258,6 +266,8 @@ __PACKAGE__->add_columns(
   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
   "expirationdate",
   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
+  "patron_expiration_date",
+  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
   "lowestPriority",
   {
     accessor      => "lowest_priority",
@@ -337,12 +347,7 @@ __PACKAGE__->belongs_to(
   "branchcode",
   "Koha::Schema::Result::Branch",
   { branchcode => "branchcode" },
-  {
-    is_deferrable => 1,
-    join_type     => "LEFT",
-    on_delete     => "CASCADE",
-    on_update     => "CASCADE",
-  },
+  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
 );
 
 =head2 club_holds_to_patron_holds
@@ -421,8 +426,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BlMb2M0MEmFuTiMSSBEseg
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-07-22 17:37:42
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kYRPPeoVo0WMk1gH+qmi/w
 
 __PACKAGE__->belongs_to(
   "item",