Skip to content
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

Try to drop regular index too besides just foreign #103

Merged
merged 3 commits into from
May 29, 2019

Conversation

jlsjonas
Copy link
Contributor

@aocneanu
Copy link
Member

I don’t think try catch is needed for mysql. @vmcvlad can you test this please?

@jlsjonas
Copy link
Contributor Author

I added it in just in case, better safe than sorry :)
As I believe (from experience) Laravel/doctrone throws an error if it couldn't drop it.
i.e. when running the upgrade command again after adding the dropIndex, it failed on the dropForeign

@aocneanu aocneanu added this to In Review in Laravel Enso May 25, 2019
@aocneanu aocneanu requested a review from vmcvlad May 25, 2019 08:01
@aocneanu aocneanu merged commit 862fe08 into master May 29, 2019
Laravel Enso automation moved this from In Review to Done May 29, 2019
@vmcvlad
Copy link
Member

vmcvlad commented May 29, 2019

I tried tested the modifications and concluded that try / catch is unnecessary since mysql does not throw an error in the case described above.

@raftx24 raftx24 deleted the jlsjonas-3.3-upgrade-sqlsrv-fix branch July 8, 2020 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Laravel Enso
  
Done
Development

Successfully merging this pull request may close these issues.

(3.3) enso:upgrade is missing index drop
3 participants