Use explicit Postgrex JSON types with Elixir JSON module

This commit is contained in:
2026-03-14 11:24:06 +01:00
parent bfdb06b203
commit 0fbd7008a1
2 changed files with 3 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ config :parrhesia, Parrhesia.Web.MetricsEndpoint,
ip: {127, 0, 0, 1}, ip: {127, 0, 0, 1},
port: 9568 port: 9568
config :parrhesia, Parrhesia.Repo, types: Parrhesia.PostgresTypes
config :parrhesia, ecto_repos: [Parrhesia.Repo] config :parrhesia, ecto_repos: [Parrhesia.Repo]
import_config "#{config_env()}.exs" import_config "#{config_env()}.exs"

View File

@@ -0,0 +1 @@
Postgrex.Types.define(Parrhesia.PostgresTypes, [], json: JSON)