Migrate issued tokens to newly installed server

I have an old centos server with pi 2.23 and a fresh ubuntu 20 server with pi 3.7
Is there a way to migrate all issued tokens to the new server without too much hassle?

Any downtime is not an option what so ever.
That’s why I’m very hesitant to update the old server first.
And I’m not sure if and how I can install pi 2.23 on the new server through packages.

I understand there’s a difference in database structure so that would need special attention.
Is there anything else that needs to be taken in consideration?

The tokenowner are now stored in a different way.
Always take a look at READ BEFORE UPDATE.

The DB migrate script should technically take care of this. However, if you have a high 5 digit number of users, this can take quite some time.