Migrating keycloak rdbms using export/import lose sessions and tokens

Hello,
I’m trying to migrate a Keycloak instance from Microsoft SQL Server to Postgresql, for that I’m using the export/import methods of the kc.sh CLI but it looks like it does not export sessions and so all tokens are getting expired.
Basically what I’m doing is exporting data from the MSSQL to a file, then importing it to the Postgres instance. I’ve tried to copy the data of the offline_user_session manually after the export/import but it’s not enough to keep sessions/tokens alive.

Am I missing something to keep the sessions alive? Is there any way to do what I want using the kc.sh import/export?

Thanks!

The export doesn’t export the sessions, neither online nor offline sessions.
Ex-/Import is not a supported way to do this kind of migrations.