Remove a doctype from orphaned Doctype list

I have changed my module of a doctype and I was migrating. I got a message as

Orphaned DocType(s) found: Fimer Employee Skills
Deleting orphaned DocTypes : [========================================] 100%
Queued rebuilding of search index for erpfimer

What I supposed to do? Is there any solution?

Every time when I am migrating the doctype is getting deleted.

Any code added in after_migrate in hooks, because it will happen when you added a after_migrate/before_migrate in hooks.

I have scheduler events after after_migrate in hooks

the only code available in after_migrate is :

after_migrate = “hrms.setup.update_select_perm_after_install”

I dont have after_migrate command in moved module