When constraints are created they are given names that look something like this 'FK5E6B788655A1514E'.
I'm wondering if the name generation is deterministic or random. I noticed that two separate databases I was using, same schemas, ended up with the same FK names.
Does it make sense when writing an upgrade script from one version of a schema to another to make use of these constraint names?