Modify RootsMagic database so that anyone with many descendent generations is set to non-living.
Please run initially on a test database or a copy of an operational database.
- Requires Python 3.6+
- RootsMagic version 7, 8, 9
rm-unset-living.py datafile.rmgc >report.out
or to check on people without making any changes
rm-unset-living.py --dry-run datafile.rmgc >report.out
--max-gen MAXGEN
Anyone with more than this many generations of descendents will have their "living" flag set to false. Default 4
--max-age MAXAGE
Anyone born this many years ago is considered deceased and will be changed. Default 120
--dry-run
Do not change the database.
--verbose
Show the generation count for every person, ie. not just those being changed
--sql-out
Output SQL statements, for later manual updates, to standard out. Enables --dry-run and disables --verbose
This code is provided with neither support nor warranty.