Phoenix 1.4 with Ecto 2

I am currently using an MSSQL database through tds_ecto.
Since tds_ecto currently works with ecto 2 I made the following changes to mix.exs

  def application do
    [
      mod: {Hello.Application, []},
      extra_applications: [:logger, :runtime_tools, :tds_ecto, :ecto]
    ]
  end
  defp deps do
    [
      {:phoenix, "~> 1.4.0"},
      {:phoenix_pubsub, "~> 1.1"},
      {:phoenix_ecto, "~> 3.0"},
      {:ecto, "~> 2.2"},
      {:tds_ecto, "~> 2.2"},
      {:phoenix_html, "~> 2.11"},
      {:phoenix_live_reload, "~> 1.2", only: :dev},
      {:gettext, "~> 0.11"},
      {:jason, "~> 1.0"},
      {:plug_cowboy, "~> 2.0"}
    ]
  end

Does Phoenix 1.4 work with Ecto 2?

Should I revert to Phoenix 1.3?

Do you have any problems?

Phoenix v1.4 should work just fine with Ecto 2, yeah. Your versions look good too!

2 Likes

You can run phoenix without ecto. You can use ecto without phoenix.

I have 3 command line projects, no web interaction, they all got ecto but no phoenix.

These are 2 separated frameworks.

1 Like

@Linuus, I’ve just tested with a demo app, everything is working fine.

@josevalim, thanks for confirming it, congrats for the new version!

@dwahyudi, that’s why I love phoenix and ecto!

1 Like