From 7a396ad94c3ce055b825b8eafddca6ef95013767 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 21 Mar 2024 10:22:18 +0000 Subject: [PATCH] Bug 36120: Schema update --- Koha/Schema/Result/Booking.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Koha/Schema/Result/Booking.pm b/Koha/Schema/Result/Booking.pm index fb5a42b82d1..ecd6a788687 100644 --- a/Koha/Schema/Result/Booking.pm +++ b/Koha/Schema/Result/Booking.pm @@ -61,7 +61,7 @@ foreign key from the items table defining the specific item the patron has place data_type: 'varchar' is_foreign_key: 1 - is_nullable: 1 + is_nullable: 0 size: 10 Identifier for booking pickup library @@ -104,7 +104,7 @@ __PACKAGE__->add_columns( "item_id", { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, "pickup_library_id", - { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, + { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, "start_date", { data_type => "datetime", @@ -195,17 +195,12 @@ __PACKAGE__->belongs_to( "pickup_library", "Koha::Schema::Result::Branch", { branchcode => "pickup_library_id" }, - { - is_deferrable => 1, - join_type => "LEFT", - on_delete => "CASCADE", - on_update => "CASCADE", - }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-03-07 17:07:54 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IEYMaWaOX+bQpm36pdTfyg +# Created by DBIx::Class::Schema::Loader v0.07049 @ 2024-03-21 10:19:45 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Huc+T/8gRHH4XQzueRAfTw # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.44.0