HUE-2447 [core]: ignore if document tables already exist

This migration can be quite slow if there are many documents.
This patch mitigates an error where the user interrupts the migration
while it's active and tries it again.