-
Notifications
You must be signed in to change notification settings - Fork 113
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
Reverts #268 and properly fix what was failing #279
Conversation
Oh, and I also removed 5.4 from the tests matrix. |
On second thoughts, this could still be a problem the other way around. So if you had a dump from before 3.2.12 (when per column collation was added), your dump did not contain the So it should be known that if people with a dump that does not have the collation column now bake a diff, they will end up with all their schema being in the diff where columns from existing tables will have a |
Or we could remove Since phinx does not support per-column collation (last time I checked), this is actually not a problem to remove it. Any opinion on this ? |
…m the dump to prevent undesired side-effects
I pushed a new commit where I play defensive and unset the collate option from both the schema read from the table and the schema from the dump. It seems safer this way and prevents undesired side-effects. This PR was reported in issue #283 as well. |
Current coverage is 84.15% (diff: 100%)@@ master #279 diff @@
==========================================
Files 31 31
Lines 1671 1672 +1
Methods 213 213
Messages 0 0
Branches 0 0
==========================================
+ Hits 1406 1407 +1
Misses 265 265
Partials 0 0
|
Hmm too bad phone does not support collate. This fix makes sense to me |
@lorenzo The only real collate support I have seen in phinx is with MySQL on a per-table basis. |
#268 was a mistake.
This should properly fix it.
#268 introduced a regression when baking a diff : you ended up with all your schema being in the diff where existing tables / columns had a
changeColumn
registered for no reason.