The question is "How would you handle it?". Re-try it in an endless loop until it works? :wink: 

In this case it is probably even the best thing to fail the hard way. Because if we can't get the content from oc_encryption then there is most likely something really broken on your system. If we catch it and fail gracefully then we will never ever get the change to execute the script again and perform the migration. On the other hand if we fail the hard way we won't increment the apps version number so the next time you reload the browser (for example if you fixed your db configuration) we will try the migration again and then it will hopefully work.