From 4f3427d09c5b9dee3615a676c6841b563c45a609 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 3 May 2022 15:18:08 +0000 Subject: [PATCH] Bug 23486: (follow-up) Correct Schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It seems the generated schema handles timestamp incorrectly - this will allow for testing Signed-off-by: Séverine QUEUNE --- Koha/Schema/Result/Borrower.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Borrower.pm b/Koha/Schema/Result/Borrower.pm index c19d3f3f31..689a825bca 100644 --- a/Koha/Schema/Result/Borrower.pm +++ b/Koha/Schema/Result/Borrower.pm @@ -573,7 +573,7 @@ time of last change could be useful for synchronization with external systems (a data_type: 'datetime' datetime_undef_if_invalid: 1 - default_value: 'current_timestamp()' + default_value: 'current_timestamp' is_nullable: 1 last time a patron has been seen (connected at the OPAC or staff interface) @@ -804,7 +804,7 @@ __PACKAGE__->add_columns( { data_type => "datetime", datetime_undef_if_invalid => 1, - default_value => "current_timestamp()", + default_value => \"current_timestamp", is_nullable => 1, }, "lang", -- 2.30.2