• Good script... appreciate the work.

    One thing though, is that this script attempts to drop indexes for primary keys, which is not allowed explicitly. One has to drop the actual constraint.