1. A computer-implemented method comprising: receiving a record indicator for a first record from a first database to be migrated to a second database; starting a first transaction to migrate the first record to the second database; converting the first record to a format compatible with the second database; generating a second transaction during the first transaction to migrate a second record related to the first record; receiving a request to open the first transaction; and converting a primary key to the format of the second database.