Packages
ecto_sql
3.13.5
3.14.0
3.13.5
3.13.4
3.13.3
3.13.2
3.13.1
3.13.0
3.12.1
3.12.0
3.11.3
3.11.2
3.11.1
3.11.0
3.10.2
3.10.1
3.10.0
3.9.2
3.9.1
3.9.0
3.8.3
3.8.2
3.8.1
3.8.0
3.7.2
3.7.1
3.7.0
3.6.2
3.6.1
3.6.0
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.5.0-rc.1
3.5.0-rc.0
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.2
3.2.1
3.2.0
3.1.6
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.5
3.0.4
3.0.3
3.0.2
3.0.1
3.0.0
3.0.0-rc.1
3.0.0-rc.0
SQL-based adapters for Ecto and database migrations
Current section
65 Versions
Jump to
Current section
65 Versions
Compare versions
4
files changed
+12
additions
-2
deletions
| @@ -1,5 +1,9 @@ | |
| 1 1 | # Changelog for v3.x |
| 2 2 | |
| 3 | + ## v3.13.5 (2026-03-03) |
| 4 | + |
| 5 | + * [postgrex] Map `:restrict_violation` to `:foreign_key` constraint (required by PostgreSQL 18) |
| 6 | + |
| 3 7 | ## v3.13.4 (2025-12-27) |
| 4 8 | |
| 5 9 | ### Bug fixes |
| @@ -1,6 +1,6 @@ | |
| 1 1 | {<<"links">>,[{<<"GitHub">>,<<"https://github.com/elixir-ecto/ecto_sql">>}]}. |
| 2 2 | {<<"name">>,<<"ecto_sql">>}. |
| 3 | - {<<"version">>,<<"3.13.4">>}. |
| 3 | + {<<"version">>,<<"3.13.5">>}. |
| 4 4 | {<<"description">>,<<"SQL-based adapters for Ecto and database migrations">>}. |
| 5 5 | {<<"elixir">>,<<"~> 1.14">>}. |
| 6 6 | {<<"files">>, |
| @@ -28,6 +28,12 @@ if Code.ensure_loaded?(Postgrex) do | |
| 28 28 | ), |
| 29 29 | do: [foreign_key: constraint] |
| 30 30 | |
| 31 | + def to_constraints( |
| 32 | + %Postgrex.Error{postgres: %{code: :restrict_violation, constraint: constraint}}, |
| 33 | + _opts |
| 34 | + ), |
| 35 | + do: [foreign_key: constraint] |
| 36 | + |
| 31 37 | def to_constraints( |
| 32 38 | %Postgrex.Error{postgres: %{code: :exclusion_violation, constraint: constraint}}, |
| 33 39 | _opts |
| @@ -2,7 +2,7 @@ defmodule EctoSQL.MixProject do | |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 4 | @source_url "https://github.com/elixir-ecto/ecto_sql" |
| 5 | - @version "3.13.4" |
| 5 | + @version "3.13.5" |
| 6 6 | @adapters ~w(pg myxql tds) |
| 7 7 | |
| 8 8 | def project do |