From be6fa21e12710cee3e938a8d5977bd6b6c10778d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 4 Nov 2024 15:09:45 +0000 Subject: [PATCH] Bug 28633: DBIC Schema Signed-off-by: Martin Renvoize --- Koha/Schema/Result/Booking.pm | 12 ++++++------ Koha/Schema/Result/BorrowerDebarment.pm | 6 +++--- Koha/Schema/Result/ImportOaiAuthority.pm | 6 +++--- Koha/Schema/Result/ImportOaiBiblio.pm | 6 +++--- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Koha/Schema/Result/Booking.pm b/Koha/Schema/Result/Booking.pm index 2231dbf19a3..e357e12db77 100644 --- a/Koha/Schema/Result/Booking.pm +++ b/Koha/Schema/Result/Booking.pm @@ -87,7 +87,7 @@ the end date of the booking data_type: 'timestamp' datetime_undef_if_invalid: 1 default_value: current_timestamp - is_nullable: 0 + is_nullable: 1 the timestamp for when a booking was created @@ -96,7 +96,7 @@ the timestamp for when a booking was created data_type: 'timestamp' datetime_undef_if_invalid: 1 default_value: current_timestamp - is_nullable: 0 + is_nullable: 1 the timestamp for when a booking has been updated @@ -157,14 +157,14 @@ __PACKAGE__->add_columns( data_type => "timestamp", datetime_undef_if_invalid => 1, default_value => \"current_timestamp", - is_nullable => 0, + is_nullable => 1, }, "modification_date", { data_type => "timestamp", datetime_undef_if_invalid => 1, default_value => \"current_timestamp", - is_nullable => 0, + is_nullable => 1, }, "status", { @@ -257,8 +257,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-10-24 16:23:05 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kTR2kwiwY2PnjU1E0P+CMQ +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-04 15:06:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7ItG3217d3lYx8ALRsktrw # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/BorrowerDebarment.pm b/Koha/Schema/Result/BorrowerDebarment.pm index da2b1413284..12506af3074 100644 --- a/Koha/Schema/Result/BorrowerDebarment.pm +++ b/Koha/Schema/Result/BorrowerDebarment.pm @@ -158,12 +158,12 @@ __PACKAGE__->belongs_to( "type", "Koha::Schema::Result::RestrictionType", { code => "type" }, - { is_deferrable => 1, on_delete => "NO ACTION", on_update => "CASCADE" }, + { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" }, ); -# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-08-19 17:53:04 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kDCkA7XrjKXlrFG5lk8Lgg +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-04 15:06:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BqN5VeZcgj6vNscHw+yukw sub koha_objects_class { 'Koha::Patron::Restrictions'; diff --git a/Koha/Schema/Result/ImportOaiAuthority.pm b/Koha/Schema/Result/ImportOaiAuthority.pm index 28a8f96219e..00ca8e4f7a0 100644 --- a/Koha/Schema/Result/ImportOaiAuthority.pm +++ b/Koha/Schema/Result/ImportOaiAuthority.pm @@ -140,12 +140,12 @@ __PACKAGE__->belongs_to( "authid", "Koha::Schema::Result::AuthHeader", { authid => "authid" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "NO ACTION" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:51:58 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PoiX9tXFhEq07VBfEg9HFw +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-04 15:06:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+OlzuRqVRPGx+tuzwPDvGg # You can replace this text with custom code or comments, and it will be preserved on regeneration diff --git a/Koha/Schema/Result/ImportOaiBiblio.pm b/Koha/Schema/Result/ImportOaiBiblio.pm index 95e24d7c396..b517287ceed 100644 --- a/Koha/Schema/Result/ImportOaiBiblio.pm +++ b/Koha/Schema/Result/ImportOaiBiblio.pm @@ -134,12 +134,12 @@ __PACKAGE__->belongs_to( "biblionumber", "Koha::Schema::Result::Biblio", { biblionumber => "biblionumber" }, - { is_deferrable => 1, on_delete => "CASCADE", on_update => "NO ACTION" }, + { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-07-31 14:51:58 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:25riMQF65/EoFhTXdZbcBg +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2024-11-04 15:06:49 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M2ZXUn0Q7Z2zJnzu5wiSvw # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.47.0