Reputation: 91
I know changing a Phoenix 1.2 project to Phoenix 1.3 will necessarily entails changing the file structure and the related path code.
However, I don't know some of the changes that need to the code itself apart from restructuring the files. In essence, is it required to make certain changes to the code itself? If it is required, can you please give me an example of such changes that need to be made to the code?
Upvotes: 1
Views: 62
Reputation: 1992
The most apparent are directory and name convention changes.
From my own experience when migrating https://github.com/Diamond/pxblog/blob/master/web/models/role.ex to Phx 1.3, you need to be careful about changes for Ecto version bump.
Sample git diff:
defmodule Pxblog.Role do
- use Pxblog.Web, :model
+ use Ecto.Schema
+ import Ecto.Changeset
Upvotes: 0