I am moving a large number of objects from one schema to another. I notice that when there are programmability objects involved in the refactoring, that the Alter Schema statement is called after the Alter statements for those objects. This results in errors being generated.

I am finding myself going into the script and manually moving the Alter Schema statement after the drop constraints steps and the refresh views steps.