Skip to content

Commit

Permalink
chore: revert recent change to datetime storage type default
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Oct 17, 2023
1 parent 20cc1cc commit fcc7e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ash/type/datetime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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]}

Expand All @@ -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
Expand Down

0 comments on commit fcc7e3b

Please sign in to comment.