Hi @Andrew Watson,
No such script exists today, although one could be written for the specific version of Hue in use as well as the backing database. In the upcoming release of Ambari, an Ambari view has been introduced to allow for just such a migration (https://github.com/apache/ambari/tree/trunk/contrib/views/hueambarimigration). Until such time that this is released, a custom solution would need to be implemented.