Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski committed Aug 10, 2024
1 parent d2e66ba commit 271d137
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion integration_test/support/migration.exs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ defmodule Ecto.Integration.Migration do
add :dur_with_fields, :duration, fields: "MONTH"
add :dur_with_precision, :duration, precision: 4
add :dur_with_fields_and_precision, :duration, fields: "HOUR TO SECOND", precision: 1
add :dur_with_default, :duration, default: "'10' MONTH"
add :dur_with_default, :duration, default: "10 MONTH"
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions test/ecto/adapters/postgres_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,7 @@ defmodule Ecto.Adapters.PostgresTest do
{:add, :flags, :bitstring, [null: false]},
{:add, :flags_with_default, :bitstring, [default: <<42::10>>]},
{:add, :flags_with_size, :bitstring, [size: 10]},
{:add, :dur, :duration, [fields: "YEAR TO MONTH", precision: 2, default: "'1' MONTH"]},
{:add, :dur, :duration, [fields: "YEAR TO MONTH", precision: 2, default: "1 MONTH"]},
{:add, :tags, {:array, :string}, [default: []]},
{:add, :languages, {:array, :string}, [default: ["pt", "es"]]},
{:add, :limits, {:array, :integer}, [default: [100, 30_000]]}
Expand All @@ -2064,7 +2064,7 @@ defmodule Ecto.Adapters.PostgresTest do
"flags" varbit NOT NULL,
"flags_with_default" varbit DEFAULT b'0000101010',
"flags_with_size" varbit(10),
"dur" interval YEAR TO MONTH(2) DEFAULT '''1'' MONTH',
"dur" interval YEAR TO MONTH(2) DEFAULT '1 MONTH',
"tags" varchar(255)[] DEFAULT ARRAY[]::varchar[],
"languages" varchar(255)[] DEFAULT ARRAY['pt','es']::varchar[],
"limits" integer[] DEFAULT ARRAY[100,30000]::integer[])
Expand Down

0 comments on commit 271d137

Please sign in to comment.