Updating GL numbers

I know this is not best practice.  With that caveat, I am trying to add a segment to the front of our GL numbers globally.  I am working in our test environment and while I can easily write the update statements, the foreign key constraints are myriad.  Has anyone done a stored procedure or written other scripting to drop the foreign keys, make the changes, and re-create the foreign keys?