there are queries compiled that reference relation "<str>" Explanation: You tried to change metadata associated with the specified table or view however a compiled query exists that depends on the current table or view metadata. User Action: You may have to disconnect, and re-attach to the database before executing this action.