check if field is primary key is indexed before deleting index
Merge pull request #130 from hsn10/not-always-delete

check if field is primary key is indexed before deleting index