Hi,

I'm trying to create a field using field_create_field method. Everything works fine. I have tried to write an uninstaller for that. Table name and it's data is renamed to field_delete_9 (id of the created field) however constraint name is not altered and it still keeps the pk_field_fname. Which when I install again causes a problem that such a constraint name exists.

I was not able to find in the code where this alter operation occured (haven't looked very hard though). I suppose it evaluates as a bug. contstraint should be either be altered too or be deleted as the table is only kept for recovery purporses...

Comments

radalin’s picture

Version: 7.x-1.10 » 7.x-1.9

corrected the driver version.

bohart’s picture

Version: 7.x-1.9 » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Everyone can apply the patches/suggestions above (not tested by the maintainers, tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.