From 271d137f3a22d8c73a2262f4b4e61cd19dd28c34 Mon Sep 17 00:00:00 2001 From: Greg Rychlewski Date: Sat, 10 Aug 2024 00:28:59 -0400 Subject: [PATCH] cleanup --- integration_test/support/migration.exs | 2 +- test/ecto/adapters/postgres_test.exs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration_test/support/migration.exs b/integration_test/support/migration.exs index 16666e1b..f4f0229a 100644 --- a/integration_test/support/migration.exs +++ b/integration_test/support/migration.exs @@ -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 diff --git a/test/ecto/adapters/postgres_test.exs b/test/ecto/adapters/postgres_test.exs index 1b24d009..617f59ff 100644 --- a/test/ecto/adapters/postgres_test.exs +++ b/test/ecto/adapters/postgres_test.exs @@ -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]]} @@ -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[])