Steps to replicate the issue (include links if applicable):
- Define and create a Cargo table that uses a hierarchy field, e.g.
{{#cargo_declare:_table=Opinions |Species=String (hierarchy;allowed values=*Human *Orc *Halfling *Elf *Dwarf *Undead **Skeleton **Phantom **Zombie **Vampire ) |Opinion=String }}
- Recreate data into a replacement table and switch in the replacement table
What happens?:
cargo_tables.field_helper_tables still refers to the hierarchy table names as they were during the replacement process, e.g. Opinions__NEXT__Species__hierarchy. If the table is then deleted, these hierarchy tables get left behind.
What should have happened instead?:
Hierarchy table names should be renamed inside cargo_tables too when the replacement table is switched in, like list tables already are.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):