I built a table with a primary key that is an incremeneting integer, since then it has been added as a foreign key to various other tables.
Is there a single query or something along those lines that I can run which will update the integer to a UUID type and update all the foreign key relationships along with it?
The only other option I can think of doing this safely is to add a new uuid column to the table, autofill values, make it the primary key, then painfully go through every table with an fkey relationship to it and update it to point at the UUID and figure out the equivalent SQL query to do this.