jdesilvio / pin-bin-api

A Phoenix API to save places of interest
Apache License 2.0
0 stars 0 forks source link

Upgrade to Phoenix 1.3 #10

Closed jdesilvio closed 6 years ago

jdesilvio commented 6 years ago

Upgrade guide: https://gist.github.com/chrismccord/71ab10d433c98b714b75c886eff17357

jdesilvio commented 6 years ago

ndarilek commented on Mar 4, 2017

One point that was missed, which I noticed when generating a new 1.3 application:

I didn't get that exactly right, but that's vaguely what I did. It isn't a breaking change, but if the goal is to make upgraded apps identical to newly-generated ones, that change should probably be documented.

jdesilvio commented 6 years ago

Optional change:

When migrating an existing app, you may want to rename MyApp.ModelCase to MyApp.DataCase, mv test/support/model_case.ex to test/support/data_case.ex, and update module references in existing model tests.

The new generators for creating a context and schema (formerly known as "model") will generate schema test cases with use MyApp.DataCase instead of MyApp.ModelCase, so you'll have to handle the missing module name somehow.

jdesilvio commented 6 years ago

https://www.phoenixdiff.org/ for changes in generated apps

jdesilvio commented 6 years ago

Created new issues for dealing with bigger upgrades that are not causing any immediate problems: