Can't delete a tag actually without a synonym.

Viewed 83

I tried to delete a tag without a synonym and received a error that this tag cant be deleted for having a synonym. I try to look into the database, found no table use for synonym.

3 Answers

image.png

Make sure there are no synonyms here right?

The tag's synonym save by main_tag_id column in tag table. For example, the golang have a synonym called go, it means the go tag's main_tag_id is golang tag's id.

ERROR:
1694082424729.png
DATABASE:
1694082324293.png
I don't know why the database seems right and error goes out.

you can follow the steps below to check whether the data query is correct.If /answer/api/v1/tag/synonyms?tag_id=XXX api returns data, it means that there are synonyms, if not, it may be that our database may have compatibility issues

image.png

image.png