Change ID format for existing objects in bulk

Hi everyone!

I need help in re-formatting the ID’s in my database.
When I started I didn’t change the default format wich has four digits. But as now I have 8000+ events, I would like to add a couple of zeros before all ID’s, so they have 6 digits instead of 4.
If I change it in preferences, it takes effect only on new objets, but I would like to change the existing ID’s too.

Is there a way I can do this?

Thank you.

Gramps 5.1.4 in Ubuntu 20.04

There’s an app for that!

Menu >> Tools >> Family Tree Processing >> Reorder Gramps IDs

The default screen displays what is. You can change the format by adding digits from %04 to %05 or %06. You can select to include/exclude specific database areas. Running the tool at this stage will add zeros (0) padding out existing IDs.

Checking Change will renumber the database reclaiming those numbers deleted or merged. Keep will not change any ID’s outside the default numbering scheme. In particular if you use GetGOV or the Place Cleanup tool to populate your place database, these tools use the ID field for their numbers. It is just as easy to exclude the Place database from any change.

And as always before running a batch edit tool, make sure you have a backup of the database. There is no undo for this process.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.