Naming Series Issue on Build

I have created a doctype with a naming series
GM-FA-.YYYY.-

Now I changed that to
GM-CS-.YYYY.-

this is working fine on my local machine, But it doesn’t work on my server instance. I have run the migrate command in the server as well. But still creates entries with GM-FA-.YYYY.-. I checked in the customize form in production mode on the naming series field, it shows options as GM-CS-.YYYY.- but it still creates entries with GM-FA-.YYYY.- how to solve this?

Check inside the Property setter doctype whether the naming series “GM-FA-.YYYY.-” is set. If it is, delete that record.