fix for comparator so it can correctly see added indexes.#2807
fix for comparator so it can correctly see added indexes.#2807arminneman wants to merge 1 commit intodoctrine:2.6from arminneman:2.6
Conversation
fix for comparator so it can correctly see added indexes.
|
Please target Also, tests have to be written beforehand. Closing as |
|
Thanks for the feedback, so I create a pull request on the master branch? Regarding the tests, I have not added any new features, will the current tests not suffice? Btw is there a way that allows me to run tests through the CI without polluting the project? |
Yep!
No, every unexpected behavior needs to be tested to ensure that the fix is correct, and that we don't introduce regressions by changing the code later on.
You can enable travis-ci for your local repository by going to https://travis-ci.org/ and enabling it there. |
|
Okay, I'll look into it, thanks again! |
starting point:
new situation:
The current comparison in comparator will not see a change here because the index name will return primary for both tables. Causing it not to trigger addedIndexes, which in turn will lead to an incorrect statement where the id key and the primary tag get added separately. MySQL will not allow this because AUTOINCREMENT can only be applied on the primary key.
This, however, is accepted.