New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Ecto 3.0 #728

Merged
merged 14 commits into from Oct 17, 2018

Adapter is now set when defining Repo module

  • Loading branch information...
wojtekmach committed Oct 10, 2018
commit d3911953c98fa22e4258838c4f61bf13fe61ee4a
View
@@ -38,7 +38,6 @@ config :logger, :console, format: "[$level] $message\n"
config :phoenix, :stacktrace_depth, 20
config :hexpm, Hexpm.RepoBase,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "hexpm_dev",
View
@@ -12,15 +12,13 @@ config :hexpm, Hexpm.Web.Endpoint,
debug_errors: false
config :hexpm, HexWeb.Repo,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "hexpm_hex",
hostname: "localhost",
pool_size: 10
config :hexpm, Hexpm.RepoBase,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "hexpm_hex",
View
@@ -28,7 +28,6 @@ config :hexpm, Hexpm.Web.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json"
config :hexpm, Hexpm.RepoBase,
adapter: Ecto.Adapters.Postgres,
ssl: true
config :bcrypt_elixir, log_rounds: 12
View
@@ -16,7 +16,6 @@ config :hexpm, Hexpm.Web.Endpoint,
config :hexpm, Hexpm.Emails.Mailer, adapter: Bamboo.TestAdapter
config :hexpm, Hexpm.RepoBase,
adapter: Ecto.Adapters.Postgres,
username: "postgres",
password: "postgres",
database: "hexpm_test",
View
@@ -1,7 +1,9 @@
# Needed to support old hex clients for CI testing
if Mix.env() == :hex do
defmodule HexWeb.Repo do
use Ecto.Repo, otp_app: :hexpm
use Ecto.Repo,
otp_app: :hexpm,
adapter: Ecto.Adapters.Postgres
end
end
@@ -63,7 +65,9 @@ defmodule Hexpm.Repo do
end
defmodule Hexpm.RepoBase do
use Ecto.Repo, otp_app: :hexpm
use Ecto.Repo,
otp_app: :hexpm,
adapter: Ecto.Adapters.Postgres
@advisory_locks %{
registry: 1
ProTip! Use n and p to navigate between commits in a pull request.