From f4cf207ff5872d5da55deeaeba708ad22daeacd4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 26 Mar 2020 16:46:34 +0000 Subject: [PATCH] Bug 16787: DO NOT PUSH - Schema updates --- Koha/Schema/Result/ClubHoldsToPatronHold.pm | 7 ++++--- Koha/Schema/Result/OldReserve.pm | 8 ++++---- Koha/Schema/Result/Reserve.pm | 8 ++++---- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Koha/Schema/Result/ClubHoldsToPatronHold.pm b/Koha/Schema/Result/ClubHoldsToPatronHold.pm index 59ffca0daf..e615c1bdac 100644 --- a/Koha/Schema/Result/ClubHoldsToPatronHold.pm +++ b/Koha/Schema/Result/ClubHoldsToPatronHold.pm @@ -50,7 +50,7 @@ __PACKAGE__->table("club_holds_to_patron_holds"); =head2 error_code data_type: 'enum' - extra: {list => ["damaged","ageRestricted","itemAlreadyOnHold","tooManyHoldsForThisRecord","tooManyReservesToday","tooManyReserves","notReservable","cannotReserveFromOtherBranches","libraryNotFound","libraryNotPickupLocation","cannotBeTransferred"]} + extra: {list => ["damaged","ageRestricted","itemAlreadyOnHold","tooManyHoldsForThisRecord","tooManyReservesToday","tooManyReserves","notReservable","cannotReserveFromOtherBranches","libraryNotFound","libraryNotPickupLocation","cannotBeTransferred","noReservesAllowed"]} is_nullable: 1 =head2 error_message @@ -86,6 +86,7 @@ __PACKAGE__->add_columns( "libraryNotFound", "libraryNotPickupLocation", "cannotBeTransferred", + "noReservesAllowed", ], }, is_nullable => 1, @@ -159,8 +160,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-01 07:08:47 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/T626DfqUi7SnXOyieUzYw +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-26 16:39:16 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ECI9E9WQTX7LaIlqF5rwEw sub koha_objects_class { 'Koha::Club::Hold::PatronHolds'; diff --git a/Koha/Schema/Result/OldReserve.pm b/Koha/Schema/Result/OldReserve.pm index 85e604d288..c516bc5b50 100644 --- a/Koha/Schema/Result/OldReserve.pm +++ b/Koha/Schema/Result/OldReserve.pm @@ -91,7 +91,7 @@ __PACKAGE__->table("old_reserves"); data_type: 'timestamp' datetime_undef_if_invalid: 1 - default_value: current_timestamp + default_value: 'current_timestamp()' is_nullable: 0 =head2 itemnumber @@ -173,7 +173,7 @@ __PACKAGE__->add_columns( { data_type => "timestamp", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", + default_value => "current_timestamp()", is_nullable => 0, }, "itemnumber", @@ -298,8 +298,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4vMUC/1kSr3vgQ7n0Pmuug +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-26 16:39:16 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8DGJs3nscxvABwZhxthE+g sub koha_object_class { 'Koha::Old::Hold'; diff --git a/Koha/Schema/Result/Reserve.pm b/Koha/Schema/Result/Reserve.pm index c5460e34da..d1ed500fcc 100644 --- a/Koha/Schema/Result/Reserve.pm +++ b/Koha/Schema/Result/Reserve.pm @@ -95,7 +95,7 @@ __PACKAGE__->table("reserves"); data_type: 'timestamp' datetime_undef_if_invalid: 1 - default_value: current_timestamp + default_value: 'current_timestamp()' is_nullable: 0 =head2 itemnumber @@ -187,7 +187,7 @@ __PACKAGE__->add_columns( { data_type => "timestamp", datetime_undef_if_invalid => 1, - default_value => \"current_timestamp", + default_value => "current_timestamp()", is_nullable => 0, }, "itemnumber", @@ -337,8 +337,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-18 12:43:15 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VH7h5kYo9WhlGobXb3N3Jg +# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-26 16:39:16 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/FD6PSEFev9UJxyGmaZxFQ __PACKAGE__->belongs_to( "item", -- 2.11.0