Skip to content

Commit d64ed68

Browse files
committed
Swap :datetime since it is passed to the database directly.
The type ecto uses is :utc_datetime.
1 parent cb83300 commit d64ed68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ecto/adapters/sqlite3/connection_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ defmodule Ecto.Adapters.SQLite3.ConnectionTest do
21522152
[precision: 8, scale: 2, default: {:fragment, "expr"}]},
21532153
{:add, :on_hand, :integer, [default: 0, null: true]},
21542154
{:add, :likes, :integer, [default: 0, null: false]},
2155-
{:add, :published_at, :datetime, [null: true]},
2155+
{:add, :published_at, :utc_datetime, [null: true]},
21562156
{:add, :is_active, :boolean, [default: true]},
21572157
{:add, :notes, :text, [collate: :nocase]},
21582158
{:add, :meta, :text, [check: %{name: "meta_constraint", expr: "meta != 'a'"}]}

0 commit comments

Comments
 (0)