From ce13d50c00513cb218db76117a9b44524899bba9 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Mon, 27 Sep 2021 16:51:15 +0200 Subject: [PATCH] TT#143151 fix inflating kamailio.location.expiry Change-Id: I0cd5a5c005b35c9fde4508a49547920562c1129e (cherry picked from commit 6438fc7a69e908471435607f44849b0dc6e12ee6) --- lib/NGCP/Schema/Result/location.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/NGCP/Schema/Result/location.pm b/lib/NGCP/Schema/Result/location.pm index a6bf3429..ed0ae5ea 100644 --- a/lib/NGCP/Schema/Result/location.pm +++ b/lib/NGCP/Schema/Result/location.pm @@ -8,7 +8,11 @@ use parent 'DBIx::Class::Core'; our $VERSION = '2.007'; -__PACKAGE__->load_components("InflateColumn::DateTime", "Helper::Row::ToJSON"); +__PACKAGE__->load_components( + "InflateColumn::DateTime", + "Helper::Row::ToJSON", + "+NGCP::Schema::InflateColumn::DateTime::EpochString", +); __PACKAGE__->table("kamailio.location"); @@ -34,7 +38,7 @@ __PACKAGE__->add_columns( { data_type => "bigint", is_nullable => 0, - inflate_datetime => 'epoch', + inflate_datetime => 'epoch_string', }, "q", {