From fcc7e3b08ad550013fd205c9bf1aeb7c88cd5718 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 17 Oct 2023 10:26:05 -0400 Subject: [PATCH] chore: revert recent change to datetime storage type default --- lib/ash/type/datetime.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ash/type/datetime.ex b/lib/ash/type/datetime.ex index f8e5b518d..3bbf876e4 100644 --- a/lib/ash/type/datetime.ex +++ b/lib/ash/type/datetime.ex @@ -23,7 +23,7 @@ defmodule Ash.Type.DateTime do @impl true def init(constraints) do - case constraints[:precision] || :microsecond do + case constraints[:precision] || :second do :microsecond -> {:ok, [{:storage_type, :utc_datetime_usec} | constraints]} @@ -37,7 +37,7 @@ defmodule Ash.Type.DateTime do storage_type end - def storage_type(_), do: :utc_datetime_usec + def storage_type(_), do: :utc_datetime @impl true def generator(_constraints) do