From e50edd5c196ea4287b56ac13c7dca3e213951763 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 1 Apr 2020 14:30:54 +0200 Subject: [PATCH] Bug 24161: DBIC manual changes No idea what's happening with the current_timestamp, but previous change was wrong. Signed-off-by: Angela O'Connor Desmond --- Koha/Schema/Result/Aqorder.pm | 2 +- Koha/Schema/Result/AqordersClaim.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Aqorder.pm b/Koha/Schema/Result/Aqorder.pm index f036b05fb6..daf6f3c253 100644 --- a/Koha/Schema/Result/Aqorder.pm +++ b/Koha/Schema/Result/Aqorder.pm @@ -359,7 +359,7 @@ __PACKAGE__->add_columns( { data_type => "timestamp", datetime_undef_if_invalid => 1, - default_value => "current_timestamp()", + default_value => \"current_timestamp", is_nullable => 0, }, "rrp", diff --git a/Koha/Schema/Result/AqordersClaim.pm b/Koha/Schema/Result/AqordersClaim.pm index 8ce00e11b1..c3abcbb142 100644 --- a/Koha/Schema/Result/AqordersClaim.pm +++ b/Koha/Schema/Result/AqordersClaim.pm @@ -53,7 +53,7 @@ __PACKAGE__->add_columns( { data_type => "timestamp", datetime_undef_if_invalid => 1, - default_value => "current_timestamp()", + default_value => \"current_timestamp", is_nullable => 0, }, ); -- 2.11.0