rename sequence only if it exists
Merge pull request #15934 from seuros/rename

rename primary key sequence only if it exists