Skip to content

Commit

Permalink
Change Postgres type for bitstring
Browse files Browse the repository at this point in the history
Co-authored-by: Greg Rychlewski <greg.rychlewski@gmail.com>
  • Loading branch information
Gigitsu and greg-rychlewski authored Nov 28, 2023
1 parent 81006d6 commit 9cb0ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/adapters/postgres/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1859,7 +1859,7 @@ if Code.ensure_loaded?(Postgrex) do
defp ecto_to_db(:bigserial), do: "bigserial"
defp ecto_to_db(:binary_id), do: "uuid"
defp ecto_to_db(:string), do: "varchar"
defp ecto_to_db(:bitstring), do: "bit varying"
defp ecto_to_db(:bitstring), do: "varbit"
defp ecto_to_db(:binary), do: "bytea"
defp ecto_to_db(:map), do: Application.fetch_env!(:ecto_sql, :postgres_map_type)
defp ecto_to_db({:map, _}), do: Application.fetch_env!(:ecto_sql, :postgres_map_type)
Expand Down

0 comments on commit 9cb0ecd

Please sign in to comment.