To replace the license ID in the Figaf tool, follow these steps in order:
Connect to your SAP PostgreSQL service
Open a terminal (with the Cloud Foundry CLI installed) and follow the instructions here to establish a direct psql connection:
https://help.figaf.com/portal/en/kb/articles/connect-to-sap-psql
Remove existing license items
DELETE FROM irt.irt_license_item;
Update the license ID
UPDATE irt.irt_license
SET id = '<new_license_id>'
WHERE id = '<old_license_id>';