Thanks for this post! Solved the exact problem I was having upgrading ownCloud from 8.2.1.4 to 8.2.7. You saved me a ton of time!