Bug 24161: DBIC manual changes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Apr 2020 12:30:54 +0000 (14:30 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 4 May 2020 08:44:44 +0000 (09:44 +0100)
No idea what's happening with the current_timestamp, but previous change
was wrong.

Signed-off-by: Angela O'Connor Desmond <angela.oconnordesmond@staff.ittralee.ie>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Schema/Result/Aqorder.pm
Koha/Schema/Result/AqordersClaim.pm

index f036b05..daf6f3c 100644 (file)
@@ -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",
index 8ce00e1..c3abcbb 100644 (file)
@@ -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,
   },
 );